As part of my holiday refactoring, I need to generate a list of directories containing XML docs. Surely there's something more natural than this?
find . -name '*.xml' | perl -nle '/(.*)\// && print $1' | uniq
I assumed there would be an option for find, but I didn't see it. (Well, gfind, that is. Solaris' find command is a pile o' junk, like so many other things on Solaris.)