How To's

Grep for files containing text

3,933 views · 0 found this helpful

Was this helpful?

In Linux, to find files containing some text, type this at the root directory of your search path:

grep -lir "the text you are looking for" *

-l limits the output to filenames (lowercase L)
-i ignores case
-r recurses

  • Updated

← All articles

Still stuck?

Our engineers answer tickets directly, 24/7.