How can I build a tar from stdin?

Something like: tar cfz foo.tgz –files-from=- But keep in mind that this won’t work for all possible filenames; you should consider the –null option and feed tar from find -print0. (The xargs example won’t quite work for large file lists because it will spawn multiple tar commands.)