Replacing a value in all xml's

Hi Folks,

Could you please advise what will be the unix command to replace the character in all xml's under a particular directory for example

let say I rite now at the following below location

$ cd /opt/apr/rt/conf

now under conf there are so many xml's and in those xml's i want to replace
value ABCD with value TRYU , so please advise what will be the appropriate unix command to achieve this. Thanks in advance:confused:

something like

find /opt/arp/rt/conf -xdev -name '*xml' | while read old_file
do
 new_file="R_${old_file}"
  sed -e 's/ABCD/TRYU/g'  ${old_file} > ${new_file}
done

Folks Please shall I save this whole command in a .sh file and then set it permissions to 777 and then execute it