The question title is pretty weird, but basically I have a file that is a list of other files, lets say FilesIWantToTar.dat. I want to say something along the lines of tar -c --input-file=FilesIWantToTar.dat archive.tar or similar. Does the tar utility provide this functionality, or do I need to write a simple script?

link|improve this question
Please accept answers you find useful and solving your question. – ulidtko Feb 4 '11 at 18:06
feedback

1 Answer

up vote 1 down vote accepted

Yes:

tar cf archive.tar -T FilesIWantToTar.dat
link|improve this answer
Awesome, thanks! I also read a little further and found the --files-from= option, equivalent to the -T – spbots Feb 4 '11 at 18:00
Yes, that's the long name. – cYrus Feb 4 '11 at 18:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.