this one should be simple for anyone who knows the correct way to escape. I'm attempting to batch rename a few hundred files that had \u0026amp; pushed into the file names instead of and or &. I tried using:
rename s/"\\u0026amp;"/"and"/g * but and getting names like Excision \uand Datsik - Calypso.mp3 you can see the \u wasn't escaped properly. What's the way to escape my
\??
Thanks
s/\u0026amp;/and/g.\umeans "uppercase next char", which pointlessly capitalizes0. So, it's equivalent tos/0026amp;/and/g: only the0026amp;is replaced and the\uis left behind. Short story is you should always use singlequotes withrename. – poolie Apr 16 '12 at 23:28