Skip to content

Instantly share code, notes, and snippets.

@elfrank
Last active December 21, 2015 09:29
Show Gist options
  • Save elfrank/6285256 to your computer and use it in GitHub Desktop.
Save elfrank/6285256 to your computer and use it in GitHub Desktop.
# find string recursively on files contained in a directory
grep -iR "STRING_TO_SEARCH" --color --exclude-dir={"\DIR_1","\DIR_2","\DIR3"} /PATH
grep -iR "" --color --exclude-dir={"\log","\storage","\.git","\tmp"} /usr/hover/sources/prometheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment