Created
April 9, 2014 19:15
-
-
Save miki725/10304640 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
path=$1 | |
if [ -z $path ]; then | |
path="."; | |
fi | |
# when symlinks are present -delete cannot be used | |
# by passing all found files to rm via xargs | |
# allows to remove files even inside symlinks | |
find $path -name '*.pyc' -follow -print0 | xargs -0 rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment