Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Search for text in multiple Word files via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Search for text in multiple Word files via the Terminal
Authored by: geohar on Feb 23, '05 08:58:25AM

Or add this alias to your tcsh aliases:

alias hgrep 'grep \!* -Ir .'

use as in

hgrep foo

finds all instances of foo in non-binary files from here down in the hierarchy

In other words, grep supports recursion, so no need for the find

grep 'danny the dog' -li -r .

does the same thing as the hint.



[ Reply to This | # ]