[Vorbis] [sorta offtopic] Removing bad bytes from filenames
Chris Harrington (Personal)
webkid at webkid.com
Mon Aug 20 14:35:38 PDT 2007
Larry Fenske wrote:
> You could also have used "tr", something like this:
>
> for i in *Thou*18*
> do
> j=`echo "$i" | tr -d "\277"`
> if [ "$i" != "$j" ]
> then
> mv -i "$i" "$j"
> fi
> done
Interesting. I saw "tr". Someone described "rename" as "tr/mv"...
Larry Fenske also wrote:
> I just now discovered that this should also work:
>
> rename Thou`echo -ne "\277"` Thou *.ogg
>
I had to change it to echo -ne "\0277" but yeah, that works really well.
Go go secret bash magic.
Thanks.
-Chris
More information about the Vorbis
mailing list