Quote:
Originally Posted by mbratch
Here's an equivalent method using 'find':
Code:
find _dir_ -type f -exec grep _expression_ {} \; -print
|
And this technique can also be used to search for particular files, or file types. I often find this useful when trying to remember where I wrote some code to do some particular task...
The syntax I'm more familiar with is (for searching down from the current directory):
Code:
grep _expression_ `find . -iname "*._extension_" -print`
And in practise I have the find coded in a shell script so I can type something short, like:
Code:
grep _expression_ `_my_find_script_"*._extension_"`
Mike