grep only text files

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)