[gentoo-user] help renaming files

2010-04-07 Thread luis jure
hello list. i have a bunch of files with accented characters in their names, both upper- and lower case. i want to rename them using the non-accented equivalent. i thought that would be easy to do using something like tr. big mistake. confronted with accented characters, tr outputs garbage.

Re: [gentoo-user] help renaming files

2010-04-07 Thread KH
Am 07.04.2010 18:21, schrieb luis jure: hello list. i have a bunch of files with accented characters in their names, both upper- and lower case. i want to rename them using the non-accented equivalent. i thought that would be easy to do using something like tr. big mistake. confronted with

Re: [gentoo-user] help renaming files

2010-04-07 Thread Jonas de Buhr
i'm using es_UY.UTF8 and i can't make tr do anything useful. any ideas? script it. python for example works well with unicode. you may want os.rename() and maybe a dictionary with your substitutions. /jdb