Shell Directroy Cleanup


by David Lutton, 2022/05/02
find . -type f -empty  -not -path '*/\.git/*'; 
find . -type d -empty ! -name .git  -delete

find . -iname node_modules -exec rm -rfv "{}" \;
find . -iname .ipynb_checkpoints -exec  rm -rfv "{}" \; 
find . -iname __pycache__ -exec  rm -rfv "{}" \;