Last active
January 26, 2020 09:15
-
-
Save hassantauqeer/aca48e4c99d69b492b59bf14c84de900 to your computer and use it in GitHub Desktop.
Delete a specific directory from all the subdirectories to a given maxDepth.
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
# This comman will delete all node_modules dirs from the directory it is execteud in till searching to 3rd subsircetory because of maxDepth=3. | |
find . -maxdepth 3 -name node_modules -type d -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment