Skip to content

Instantly share code, notes, and snippets.

@heiths
Created December 22, 2012 01:06
Show Gist options
  • Save heiths/4356903 to your computer and use it in GitHub Desktop.
Save heiths/4356903 to your computer and use it in GitHub Desktop.
bash script to decompile all .pyc files in a directory. Must have uncompyler installed.
for i in `ls *.pyc`; do echo $i | awk '{print("uncompyler.py "$1" > "$1)}' | sed 's/pyc/py/2' | /bin/sh; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment