renaming *.wav.mp3 to *.mp3 only
Erich Schroeder
erich at museum.state.il.us
Thu Jun 9 14:08:37 UTC 2005
On Wed, 8 Jun 2005, Matthew Miller wrote:
> On Wed, Jun 08, 2005 at 04:12:39PM -0500, Erich Schroeder wrote:
>> 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
>
> Man, I find that more confusing and harder to remember than the bash loop
> approach. :)
Sorry, of course the only line that was needed was:
rename .wav.mp3 .mp3 *.wav.mp3
And
rename .htm .html *.htm
will fix the extension of your html files, if you should need it. I
particularly use it to lowercase the .pdf extension when a bunch of them
are provided me by windows folks.
eks
> --
> Matthew Miller mattdm at mattdm.org <http://www.mattdm.org/>
> Boston University Linux ------> <http://linux.bu.edu/>
> Current office temperature: 80 degrees Fahrenheit.
>
> --
> 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