I'm trying to figure out how to use
grep to search for for a specific string, (for the sake of simplicity) say
"9", and I want to search for this, again for simplicity, on all files containing the character
grep -e "9" b, but it says it can't find file
b. (The same if I don't use the
I know that I could go for
grep -e "9" *b*, but that's not my point. I want the usual tools of regular expressions to use for filename matching.
I'm not interested in convoluted ways of obtaining this. I'm hoping there is a simple option in
grep that I can use for this. I perused the
man and I can't find anything useful, but I'm pretty new to shell scripting, so I could very easily be missing it.
Is it possible to use regular expression for filename matching using just
grep? If so, how?