I need to find some text in one or more files.
This is what I use:
grep -irI "hello" ~/
However, if I want to find a string containing characters like *
or _
then these seem to be ignored.
Let's say I want to search in all files for the string a**__
.
How can I do that? Many thanks – I just can't figure this out!
Best Answer
There is a -F option:
This will disable searching by regular expressions and interpreting characters like
*
or.
. Example: