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:
Note the single qoutes and backslash to protect the shell from interpreting.
    
find . -name Makefile.* -exec rm -f '{}' \;
Note the single qoutes and backslash to protect the shell from interpreting.


0 Comments:
Post a Comment
<< Home