If you find yourself stuck with over 30,000 files in a directory (text files in this example), packing them into a tar file can be tricky. You can get around it with this:
find . -name '*.txt' -print >/tmp/test.manifest
tar -cvzf textfiles.tar.gz --files-from /tmp/test.manifest
find . -name '*.txt' | xargs rm -v
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
This entry was posted on Thursday, July 5th, 2007 at 9:11 pm and is filed under Command Line.You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.