renaming *.wav.mp3 to *.mp3 only

Erich Schroeder erich at museum.state.il.us
Wed Jun 8 21:12:39 UTC 2005


On fedora you can use rename.

[erich at groucho temp]$ touch test.wav.mp3
[erich at groucho temp]$ rename .wav.mp3 .mp3 *.wav.mp3
[erich at groucho temp]$ ls *.mp3
test.mp3

eks

On Wed, 8 Jun 2005, Stuart Mackintosh wrote:

>> I copied a
>> script from the internet but it did not work to encode
>> mp3 and I modified it so that I could get some output
>> and it came to *.wav.mp3
>
> try this:
>
> for i in `ls *.wav.mp3`; do mv $i `echo $i |sed s/wav\.//`;done
>
> Test it first, it may do nasty things....
>
>
> -- 
> Stuart Mackintosh <sm at opusvl.com>
> OpusVL
>
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>

---------------------------------------------------------------------
Erich Schroeder                    Phone: (217)785-0033
Curator, Learning Center           FAX:   (217)785-2857
Illinois State Museum GIS Lab      email:erich(at)illinois.state.museum
http://www.museum.state.il.us/     Linux user #18660
---------------------------------------------------------------------




More information about the fedora-list mailing list