renaming *.wav.mp3 to *.mp3 only

Stuart Mackintosh sm at opusvl.com
Wed Jun 8 21:06:40 UTC 2005


> 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




More information about the fedora-list mailing list