Clean all .pyc files from current project. It cleans all the files recursively.
find . -name "*.pyc" -exec rm {} \;
For a python project, sometimes I need to clean all the compiled python files. I have an alias 'rmpyc' to this command. This really saves me a lot of typing and hunting throughout the folders to delete those files.
rm -rf *.pyc
#!/bin/sh
find -type f -name '*.pyc' -exec rm -f {} ';'
find -type f -name '.*.swp' -exec rm -f {} ';'
find -type f -name '*~' -exec rm -f {} ';'
better, I prefer to use a shell script and put it in the sys. environment path so I can run clean.sh from anywhere.....