Your Ad Here

Posted By

indianocean on 10/31/08


Tagged

Shell Bash


Versions (?)

Recursively delete files matching pattern (or perform other action)


 / Published in: Bash
 

maybe theres a way to do it in a single step, don't care now to optimize

  1. # first deletes content of folder
  2. find . -name .svn -exec rm -rf {} \;
  3.  
  4. #delete folders
  5. find . -name .svn -exec rmdir {} \;

Report this snippet  

You need to login to post a comment.