Kill Your CVS

find . -name “CVS” -exec rm -Rf {} \;

3 Responses to “Kill Your CVS”


  1. 1 Turnip

    Oh. My. God. Why didn’t you post this two months ago?!?! I needed to kill my .svn so I came up with:

    ————-
    #!/bin/bash

    recurse () {
    for file in $(ls -aA $1); do
    fqfn=$1/$file
    [[ -d $fqfn ]] && [[ $file = ".svn" ]] &[[ -d $fqfn ]] && [[ $file != ".svn" ]] && recurse $fqfn
    done ;
    }
    recurse $1
    ————-

    Your way is sosososososo much simpler! You live and you learn…

  2. 2 Turnip

    BTW I realise there is “svn export” but I managed to kill my server and you can’t export from a local working copy.

  3. 3 jon

    Hahahaha…isn’t that amazing the lengths you’ll go to get a script working and then there is like one liner or one command to do it easily. I love unix!

Leave a Reply