Tag Archives: grep

HOWTO: Recursively delete matching files on the Linux command line

An easy way to recursively delete files matching a particular pattern is to use this one liner: find | grep "search" | perl -nle unlink UPDATE – Another handy one liner to recursively delete directories is: rm -rf `find . … Continue reading

Posted in HOWTO, Linux | Tagged , , | Leave a comment

HOWTO: Recursive search and replace on the Linux command line

The ‘traditional’ way to search and replace on the command line was to use some combination of grep/find/perl/sed etc. Which offers great flexibility but at the end of the day can turn into a right pain in order to complete … Continue reading

Posted in HOWTO, Linux | Tagged , | Leave a comment