Skip to content

Instantly share code, notes, and snippets.

@charlesthomas
Created March 21, 2014 20:48
Show Gist options
  • Save charlesthomas/9696093 to your computer and use it in GitHub Desktop.
Save charlesthomas/9696093 to your computer and use it in GitHub Desktop.
finf: find text in files
function finf() {
find `pwd` \( \( -name .git -o -name '*.pyc' \) -prune \) \
-o \( -type f -print0 \) \
| xargs -0 grep -in --color "$@" 2>/dev/null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment