grep

Find patterns in files using regular expressions.

Usage

Find all files containing specific string

This can be done recursively using grep -Ril "string" / where,

  • R is for recursive

  • i is for ignore case

  • l is for only the file will be shown and not the content.

  • / is for starting at the root of the machine

Last updated