$ grep -r 9900 *.mk
grep: *.mk: No such file or directory
$ grep -R 9900 *.mk
grep: *.mk: No such file or directory
$ grep -V
GNU grep 2.5.4
am I using a wrong grep? or what is the syntax? Thanks!
You can use the include flag:
grep -r --include="*.mk" 9900 .
grep manual page says:
--include : If specified, only files matching the given filename pattern are searched.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With