Created
February 17, 2016 13:52
-
-
Save strokirk/051b848be4f2e50eb131 to your computer and use it in GitHub Desktop.
Shell script to generate imports in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat .git/tags | grep "\(f\|c\)$" | awk '{print $1, $2}' | tr / . | sed -e s/\.py$// -e s'/\.\.\.//' | awk '{print "from", $2, "import", $1}' | sort |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Det här är kortare