find . -maxdepth 2 -name config.xml | while read line ; do echo $line ; sed -i.bak -e 's/<customWorkspace>\/hudson<\/customWorkspace>/<customWorkspace>\/hudson\/workspace<\/customWorkspace>/' "$line" ; done
Blog by Pál "voji" Vojácsek
find . -maxdepth 2 -name config.xml | while read line ; do echo $line ; sed -i.bak -e 's/<customWorkspace>\/hudson<\/customWorkspace>/<customWorkspace>\/hudson\/workspace<\/customWorkspace>/' "$line" ; done