i need , some help , with my mini-script , to Fix , Spanish Filename with ISO_8859-1 and/or with part of names like "ó"
The Script its there : http://www.pastebin.com/vT5Z2BqE
Yesterday with a 3 Things , are working , i add more , and dont work anymore , i dont understand why .
Look , if i use that command in a "Bash Shell" / "Gnome-Terminal" like :
inukaze@Inukaze:~$ cd Filenames_to_fix inukaze@Inukaze:~/Filenames_to_fix$ inukaze@Inukaze:~/Filenames_to_fix$ expresion='°' inukaze@Inukaze:~/Filenames_to_fix$ sustituto='°' inukaze@Inukaze:~/Filenames_to_fix$ ls *$expresion* 01 - La Espada del Augurio °.avi inukaze@Inukaze:~/Filenames_to_fix$ for i in $( ls $expresion ); do > orig=$i > dest=$(echo $i | sed -e "s/$expresion/$sustituto/") > mv $orig $dest > done mv: no se puede efectuar stat' sobre «01»: No existe el fichero o el directorio mv: no se puede efectuarstat' sobre «-»: No existe el fichero o el directorio mv: no se puede efectuar stat' sobre «La»: No existe el fichero o el directorio mv: no se puede efectuarstat' sobre «Espada»: No existe el fichero o el directorio mv: no se puede efectuar stat' sobre «del»: No existe el fichero o el directorio mv: no se puede efectuarstat' sobre «Augurio»: No existe el fichero o el directorio mv: no se puede efectuar `stat' sobre «°»: No existe el fichero o el directorio I need , the change of part of filename "°" for "ª" , for example Someone / somebody , can explain why this error , and how to fix it ???
I dont wanna interactive mode , and dont wanna replace "extension" i wanna "rename" the bad part of filename , with the "Good" character in its place :D.
Thank you for readme , and sorry my bad english , thank you for any help can you give me with this script