Tar archiving that takes input from a list of files Tar archiving that takes input from a list of files linux linux

Tar archiving that takes input from a list of files


Yes:

tar -cvf allfiles.tar -T mylist.txt


Assuming GNU tar (as this is Linux), the -T or --files-from option is what you want.


You can also pipe in the file names which might be useful:

find /path/to/files -name \*.txt | tar -cvf allfiles.tar -T -