Changing filenames from Greeklish => Greek (subprocess complain)

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jun 5 02:06:40 EDT 2013


On Tue, 04 Jun 2013 08:47:01 +0000, Steven D'Aprano wrote:

> Please run these commands, and show what result they give:
> 
> alias ls
> 
> printf %q\\n *.mp3
> 
> ls -b *.mp3


Do you have an answer for this yet? Better still, change the last two 
commands to this:


printf %q\\n *

ls -b *


> If all else fails, you could just rename the troublesome file and
> hopefully the problem will go away:
> 
> mv *Ο.mp3 1.mp3
> mv 1.mp3 Eυχή του Ιησού.mp3


Of course that second command is wrong, it needs quotes:

mv 1.mp3 "Eυχή του Ιησού.mp3"



-- 
Steven



More information about the Python-list mailing list