This is a short tip that allows to delete hidden folders or files in the current directory in a recursive way.
find . -name .svn -type d -exec rm -rf {} \;
It means, find in the current directory '.' by name '-name' equals to '.svn' and '-type' directory 'd' then execute '-exec' command 'rm -rf' for all folders that match the name and type '{}' and end hole command '\;'
No comments:
Post a Comment