in reply to Re: perl code to replace
in thread perl code to replace

Your bash script replaces filename like "xml.xml" to "txt.xml". I think you need to change the script as follows inorder to work as expected,

mv $N ${N/%xml/txt}