Tar: Archiving Selected Files

Instead of letting tar recursively add files to the archive simply provide a file list on stdin.

find . -type f -maxdepth 1 | tar -czf ARCHIVE.tar.gz -T -

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.