Hello, I need to encode some WAV files into MP3. I'm planning to use Lame. Lame does not seem to accept wildcards, so I wrote a script-line: for a in *.wav; do lame --preset cbr 256 $a ; done But, this encodes *.wav into *.wav.mp3 . How do I make it drop the "wav" from the name? (If I need to do it by more elaborate scripting, please do tell me how; I'm somewhat unfamiliar with bash scripting as yet) Yours, Mikhail Ramendik