one-liner for removing 'CVS' or '.svn' directories





5
Date Submitted Mon. Aug. 14th, 2006 7:31 AM
Revision 1 of 1
Scripter bertheymans
Tags bash | linux | shell
Comments 1 comments
Recursively removes files or directories with a given name, using find.

I most frequently use it to remove 'CVS' or '.svn' directories from sourcepackages that still have the versioning information in them.

find ./ -name 'CVS' -execdir rm -rf '{}' \; -print
 

Bert Heymans

blog.heymans.org

Comments

Comments Didn't know about execdir
Mon. Aug. 14th, 2006 2:27 PM    Helper bobbyrward

Voting