Skip to content

Instantly share code, notes, and snippets.

@AlexBaranowski
Last active December 11, 2017 15:23
Show Gist options
  • Save AlexBaranowski/0e89c50d2ed96189bfe67f35732194f2 to your computer and use it in GitHub Desktop.
Save AlexBaranowski/0e89c50d2ed96189bfe67f35732194f2 to your computer and use it in GitHub Desktop.
Find all python import in given directory with find && grep.
find . -name '*\.py' -exec grep '^import ' {} \; | sort | uniq > req
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment