Most of my use consists of searching a directory for a text string. Here is the general syntax,
grep -R "search string" .
That will do a search under the current directory. (modify the end "." as needed, if you need to search elsewhere)
UPDATE: I came back a few days ago to refer this and I noticed I forgot to mention where the search string should be! Silly me.
UPDATE2: Thats odd. I typed in <> (without the spaces) and it doesn't come up?
No comments:
Post a Comment