joined:Apr 20, 2004
For many years I have used grep like this:
grep -r string *.ext
to find "string" in any file with a ".ext" extension anywhere below the current directory. (Also allowed, according to 'man grep': -R and --recursive)
However these days grep refuses to dive into any subdirectory when a file extension with wildcard is used. It still recurses when this type of command is issued:
grep -r string *
But never when there is a file extension included.
Thoughts? (I expect a bunch of "You should use 'find...' responses, so fire away, but the REAL issue is why doesn't grep go recursive with the wildcard any more?)