Originally Posted by MensaWater
The quotes should work but be aware this is case sensitive.
If your "when" is actually "When" then it wouldn't find it unless you specified "When..." in your grep OR if you specify the -i option (case insensitivity).
correct, that is why I am using "-i" tag. However, i know i works with the sentence, but what I am trying to say is, the sentence has to be exact. there can not be no mismatch. example would be
"server has failed due to the chip 288"
I can # grep -i -r --col "server has failed" ./ and it will return something, but if I were to
# grep -i -r --col "failed chip 288" ./ it wont return anything because the sentence is not exact match. I was just wondering if there is a way to throw in a sentence and just find strings
or if I had a misspelled word it wont find it neither such as grep -i -r "serv failed chip 288" ./ ( i want it to return failed chip 288 rather than not retunring anything =P )
within that document without it having to have an exact match. I know you can use egrep, but its pretty annoying using the | in between strings.