Created
December 7, 2018 10:08
-
-
Save ArnoutDevos/46704443f2456ded8da2c3266b216cd4 to your computer and use it in GitHub Desktop.
command to remove automatically created .ipynb_checkpoints folders and their checkpoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf `find -type d -name .ipynb_checkpoints` |
Thanks, it works.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry dude, do I need to install bash first?
or I can write it on the command window?
I do not have Linux or macOS.