Title: RE: how to tar a filelist ?

Tar will accept the paths as command-line parameters or from a specific text file.

Warning: tar will tar the directories _and their contents_ if you include the directory paths (e.g. /usr/bin). You could filter your filelist with something like this:-

# > filelist.new
# for i in `cat filelist` ; do
#     [ ! -d "$i" ] && echo $i >> filelist.new
# done

...and then feed filelist.new to tar. I can't remember which parameter you use in order to tell tar to take its filelist from a specific text file. Type 'man tar' and see. :-)

-Hugo

Reply via email to