> Date: Thu, 26 Mar 2009 23:14:52 -0400
> To: misha...@hotmail.com
> From: david+dated+1238555693.f4d...@skytracker.ca
> CC: questi...@freebsd.org; david+dated+1238356671.fa5...@skytracker.ca
> Subject: Re: renaming many Chinese files
>
> that worked fine. Thanks.
Glad
that worked fine. Thanks.
Just a very quick thought (the first that pops into my mind): you could
see which are the western characters that appear in the names, and then
use sed to substitute all non-matching characters with nothing,
something like:
for i in *.jpg; do b="`echo $i | sed 's/[^CHA
Just a very quick thought (the first that pops into my mind): you could
see which are the western characters that appear in the names, and then
use sed to substitute all non-matching characters with nothing,
something like:
for i in *.jpg; do b="`echo $i | sed 's/[^CHAR_SET]//g'`"; mv $i $b; done