Something like this perhaps.
perl -pi.bak -e 's/^(mail)( xmlfeedback)(.*)/$1$3$2/' *.sh [download]
Cheers,
JohnGG
In reply to Re: search and replace by johngg in thread search and replace by Peamasii