You can use the -r
(recursive) and -I
(ignore binary) options in grep
:
$ grep -rI "TEXTSEARCH" .
-I
Process a binary file as if it did not contain matching data; this is equivalent to the--binary-files=without-match
option.-r
Read all files under each directory, recursively; this is equivalent to the-d recurse
option.