On Sat, 04 Oct 2003 23:36:28 -0700
Jack Coates <[EMAIL PROTECTED]> uttered:

> hell, this is a one-liner :-)
> 
> for i in `ls *.wav`; do lame -buncha -options $i; done

alias that sucker in your .bashrc like this:

function mp3enc() { for i in `ls *.wav`; do lame -buncha -options $i;
done }

and in reverse:

function mp3dec() { for i in *.mp3; do lame --decode $i `basename $i
.mp3`.wav; done; }

the only problem you might run into is if the filenames have spaces, so,
do this first:

for i in *.mp3; do mv "$i" `echo $i | tr ' ' '_'`;done;

you can alias that one as well in your .bashrc

-- 
HaywireMac
Registered Linux user #282046
Homepage: www.orderinchaos.org
++++++++++++++++++++++++++++++++++++++++++
Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
++++++++++++++++++++++++++++++++++++++++++
The truth is what is; what should be is a dirty lie.
                -- Lenny Bruce

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to