The almighty grep

It’s kinda funny. I use linux a lot but a lot of the commands still elude me. Take for example “grep”. Anyone who has used the command line with linux/unix must be familiar with it. And each time I need to use it, I still google around for instructions. -sigh- I’ve been spoiled by search.

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?