Skip to content

Instantly share code, notes, and snippets.

@exit99
Created January 5, 2016 21:27
Show Gist options
  • Save exit99/7ca72872bc13497aa485 to your computer and use it in GitHub Desktop.
Save exit99/7ca72872bc13497aa485 to your computer and use it in GitHub Desktop.
Bash cmd for upgrading all python files recursively to python3
find . -exec ls -dl \{\} \; | grep ".*\.py" | awk '{print $9}' | xargs 2to3 -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment