Skip to content

Instantly share code, notes, and snippets.

@bradsokol
Last active December 12, 2015 12:09
Show Gist options
  • Save bradsokol/4770452 to your computer and use it in GitHub Desktop.
Save bradsokol/4770452 to your computer and use it in GitHub Desktop.
Recursively find and grep all Python source files in a directory tree.
pyfind()
{
find . -name "*.py" -exec grep -Hn "$*" {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment