free hit counter

Monday, March 06, 2006

unix find command

I don't have complicated uses for find all that often, but when I do I invariably forget the syntax. Here's one that removes all makefiles from the directory structure:

find . -name Makefile.* -exec rm -f '{}' \;

Note the single qoutes and backslash to protect the shell from interpreting.


Post a Comment

<< Home