I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types.
I want to grep just .h and .cpp for now, but maybe a few others in the future.
So far …
I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I have bash shell:
grep -ircl "foo=" *
In the directories are also many binary files which match "foo=". As these results …