I'm trying to delete all subdirectories of my current working directory which contain a rar file.
My first attempt: find -name *.rar -exec rm -r {}/.. ';' failed because that is not a valid directory. I tried using dirname {} for a more sensible command, but decided to just ask for help after almost deleting stuff I didn't mean to.
I'm using Cygwin on Windows 7, in case that's relevant.
