http://www.perlmonks.org?node_id=996132


in reply to search and replace

Just remove the "xmlfeedback" and add it to the end of the line if the line matches:
perl -pe 's/xmlfeedback //,s/$/ xmlfeedback/ if /^mail xmlfeedback -s +"feed invalid for agent .*"/'
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ