Skip to content

Instantly share code, notes, and snippets.

@hbsdev
hbsdev / clean_py.sh
Last active July 14, 2024 19:48 — forked from joelverhagen/clean_py.sh
Recursively remove all .pyc files and __pycache__ directories in the current directory.
#!/bin/sh
# recursively removes all .pyc files and __pycache__ directories in the current
# directory
find . | grep -E "(__pycache__|\.pyc$)" | xargs rm -rf