I wanted to get rid of the “build” directories in my source folders before prepping my source folders for git, so I used the following command to get rid of them:
find . -iname "build" -type d -print -execdir rm -R '{}' \;
I wanted to get rid of the “build” directories in my source folders before prepping my source folders for git, so I used the following command to get rid of them:
find . -iname "build" -type d -print -execdir rm -R '{}' \;
This is dangerous and error prone. You would be better off using a .gitignore file instead.
Thanks for the comment.
Luckily for me, working on experimental stuff means I don’t have to worry about messing up important files and I actually learn something along the way.