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


in reply to renaming filenames

ls * | perl -nle'$in=$_; s/canción/Poesía/; $out=$_; rename($in,$out)if!-e$out'

Works for me. Details in this node

Corrected -e$n: thanks to remiah