Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

Yes:

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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