//View Tip #208
» Directories and its size
» Untar multiple files in a directory
» Using tar with other compression formats
» Finding Newer Files [OR How To Create A Patch File]
Similar Tips
» Moved Trac and Subversion repositories to another machine/direct» Directories and its size
» Untar multiple files in a directory
» Using tar with other compression formats
» Finding Newer Files [OR How To Create A Patch File]
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 or $ find ./dir/ | cpio -o --format=tar -F test.tar
Comments
Add your comment
Comments are currently disabled
No Comments

