Clean all .pyc files from current project. It cleans all the files recursively. | commandlinefu.com
Clean all .pyc files from current project. It cleans all the files recursively.
find . -name "*.pyc" -exec rm {} \;-2Clean all .pyc files from current project. It cleans all the files recursively.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.
Alternatives
There is 1 alternative - vote for the best!
find . -type f -name "*.pyc" -delete;