renaming *.wav.mp3 to *.mp3 only

Matthew Miller mattdm at mattdm.org
Wed Jun 8 21:20:22 UTC 2005


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. :)

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>
Current office temperature: 80 degrees Fahrenheit.




More information about the fedora-list mailing list