/ Published in: Bash
-l grep options shows the path and only the path of the matching file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for i in `grep -rl "PATTERN" $DIR`; do rm -f $i; done;