Favorite Unix Commands

find grep with xargs

find . -name '*-items.xml' | xargs grep -i '=cmscomponent'

tar split into parts

tar cfvz - MyBigFolder/ | split -b 20m - MyBigFolder.tar.gz.

Splits the content into parts with each with a max size of 20MB. The parts getting a suffix attached to the name. To untar them again use

cat MyBigFolder.tar.gz.* | tar xfvz -

Leave a Reply

Your email address will not be published. Required fields are marked *