Created
May 25, 2018 22:35
-
-
Save petja/165ff43a89492121f8c8c74a642a3f6c to your computer and use it in GitHub Desktop.
Free some disk space by removing node_modules older than 30 days
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
find ~/projects -maxdepth 2 -type d -name 'node_modules' -mmin +$((60*24*30)) -prune | awk '{ print "\""$0"\""}' | xargs rm -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment