According to stackoverflow the same problem: I need to find all files within a given path which include a pattern-string. The best solution for me is
$ grep -Rn "STRING" PATH/*.js
where -R is recursive and -n is line-numbers. This example searchs for STRING in javascript-files of PATH.
Ein Gedanke zu „Finding all files containing a text string on linux“