Results 1 to 3 of 3
Hello all,
I have a question regarding grep an meta-characters.How can I search for a string with grep without interpreting meta-characters.The idea is that I don't want to interpret their ...
- 07-31-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
grep escape methacharacters
Hello all,
I have a question regarding grep an meta-characters.How can I search for a string with grep without interpreting meta-characters.The idea is that I don't want to interpret their special meaning I ant grep to interpret the string as it it.
I know that I can escape them but for me this is not an answer because the string that I'll search for is given by a script so I don't know how it looks like.
I looking for something (a flag or another unix utility) that doesn't interpret regexp characters.
Thanks!
- 08-01-2009 #2Just Joined!
- Join Date
- Jul 2009
- Posts
- 2
use fgrep or grep -F if the -F switch is supported by your grep
- 08-03-2009 #3


Reply With Quote
