I want to, from a root dir, find all dirs that contain a certain file name (pom.xml), then cd to that dir and execute a command. I can do this in a script but I was hoping to do this with a single line command.
so far I have
find . -type f -name 'pom.xml' |sed 's#\(.*\)/.*#\1#'
This gives the dirs I need... now I need to cd into each and execute my command