Return to Snippet

Revision: 4275
at November 19, 2007 12:07 by therobot


Initial Code
for i in `grep -rl "PATTERN" $DIR`; do rm -f $i; done;

Initial URL

                                

Initial Description
-l grep options shows the path and only the path of the matching file

Initial Title
Deleting files that contain a pattern

Initial Tags
regexp

Initial Language
Bash