Display filenames whose content matches the search string at least once

fgrep

  • Matches fixed strings in files.
    Equivalent to `grep -F`.
    More information: <https://www.gnu.org/software/grep/manual/grep.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

fgrep -l {{search_string}} {{path/to/file1}} {{path/to/file2}}

click the source code to copy install fgrep on any operating system with command-not-found.com