Last active
September 23, 2017 14:15
-
-
Save davidgardenier/6bb620476561d4b85ef576e7b0335e55 to your computer and use it in GitHub Desktop.
Recursively unzip zip files
This file contains 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
for f in `find ./ -name "*.zip"` ; do p=`pwd`; d=`dirname $f`; cd $d; b=`basename $f`; unzip -o $b; cd $p; done; | |
find . -name *.txt -exec rm -rf {} \; | |
for f in `find ./ -name "*.py"` ; do p=`pwd`; d=`dirname $f`; cd $d; b=`basename $f`; code2pdf -l -s a4 $b; cd $p; done | |
for f in */; do p=`pwd`; d=`dirname $f`; cd $d; pdftk "$f"*.pdf output "$p"/"${f::-1}".pdf; cd $p; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment