-
-
Save ArnoutDevos/46704443f2456ded8da2c3266b216cd4 to your computer and use it in GitHub Desktop.
rm -rf `find -type d -name .ipynb_checkpoints` |
This doesn't delete it, it finds them but don't delete them :
find: illegal option -- t
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
if you have linked folders:
rm -rf `find -L -type d -name .ipynb_checkpoints`
the -L
make it recursive for symbolic link as well
Thank you, very helpful!
Sorry, I use Window11. How can use this code.
Sorry, I use Window11. How can use this code.
In WSL or Cygwin
This doesn't delete it, it finds them but don't delete them :
find: illegal option -- t usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Even though this maybe quite old, I hope my answer can still be helpful to anyone who faces the same problem in the future:
rm -rf `find . -type d -name .ipynb_checkpoints`
Thanks, it works.