Re: renaming *.wav.mp3 to *.mp3 only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On fedora you can use rename.

[erich@groucho temp]$ touch test.wav.mp3
[erich@groucho temp]$ rename .wav.mp3 .mp3 *.wav.mp3
[erich@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@xxxxxxxxxx> OpusVL

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
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 ---------------------------------------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux