|
Ok, I asked somebody at work today and this is one way to do it:
so you've ssh'd in, and now you should change to the main directory you want to search on (the search will look in all subdirectories), then you can run something like this:
find . -name '*.extension' | xargs grep 'your special phrase'
The '.' means start the search in the current directory (it will look in all subdirectories automatically, this is called a recursive). The *.extension is to only look inside files that have that extension, so you don't end up searching through a lot of files you don't care about. The '|' is called pipe and it is used to pass the result of one command to another. In this case we're passing the results from the find to xargs, which will run each item given to it against the command specified (in this case 'grep').
Make sense?
__________________
-justin
1987 300TD, 1987 300TD
2008 R32, 2000 Passat Wagon
|