>> I throught that grep is an overly-complicated way of searching for the
>> location of a string within one particular file? (I usually just use my
>> text editor's "search" function.)
>
> Does your editor support regular expressions? Most only support a
> simple substring search.
Is there some advantage to supporting regular expressions?
I mean, I realise that hypothetically a regex can find things that a
normal search can't. But in reality, when are you *ever* going to use
that? What would it be useful for?
> As Warp said, you also can traverse a directory structure with grep to
> find the file(s) that have the string in them.
I didn't know that. I thought grep was just for searching within one file.
Post a reply to this message
|