Today, I got an "urgent" message from someone who desperately needs to delete all of the CVS directories below the main directory. How do you do this in Perl, he says (urgently)?
Well, you don't. I answered his question because its pretty easy. If I had to think about it, I would just move to the next "urgent" question waiting for me.
Just use the right CVS command.
$ cvs export ...
$ find . -name CVS | xargs rm -rf
$ find . -name CVS -type d -exec rm -rf '{}' \;
But if you must use a feature-challenged OS, you may find that perl is as handy as it gets.
c:> find2perl . -name CVS -type d -exec rm -rf '{}' \; > rm-cvs.pl
c:> perl rm-cvs.pl
And that reminded why PPT was a good idea some day. It makes part of the world domination plan.