/ Published in: Bash
The following command will grep for a string in HTML files, but will skip the directories dirFoo and dirBar. (Thanks Jeff)
Expand |
Embed | Plain Text
find . -name "*.html" \( -name 'dirFoo' -prune -o -name 'dirBar' -prune \) | xargs grep -n "THE_PATH_YOU_ARE_LOOKING_FOR"
You need to login to post a comment.
