Skip to content

Instantly share code, notes, and snippets.

@madsonic
Created June 25, 2019 03:13
Show Gist options
  • Save madsonic/052b91cafebd8162397f257dfd5bc60e to your computer and use it in GitHub Desktop.
Save madsonic/052b91cafebd8162397f257dfd5bc60e to your computer and use it in GitHub Desktop.
grep
# search for pattern in given path
# -r recursive
# -n line number
# -H print file name
# -I ignore binary
grep -rnHI '<regex>' <file/dir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment