tags:

views:

337

answers:

1

How can I pipe information into tar specifying the names of the file?

+1  A: 

Instead of using pipe you could use backticks, e.g.:

tar cvzf archive.tgz `ls -1 *`

Instead of ls -1 * you can put any other command which produces list of needed to archive files

Laimoncijus