Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Please accept answers you find useful and solving your question. – ulidtko Feb 4 '11 at 18:06
up vote 1 down vote accepted


tar cf archive.tar -T FilesIWantToTar.dat
share|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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .