//View Tip #208
Similar Tips
» Tar remote dir over SSH
» Replace expr by other recursively
» Mass-renaming files
» Rename many files using find and perl
» Add a line to files using find and echo


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
If you want to select specifically the files to add to an archive you can pipe the output from find (or any command that gives a list of files) to cpio:

$ find ./dir/ | cpio -o --format=tar > archive.tar
$ find ./dir/ | cpio -o --format=tar -F test.tar

View Comments »


Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit