Shell Tips

How to remove all *.pyc files recursively?

find . -name "*.pyc" -delete

or

find . -name "*.pyc" -exec rm -f {} \;