[linux-audio-user] lame and filenames

anahata anahata at treewind.co.uk
Sun Sep 12 05:16:18 EDT 2004


On Sun, Sep 12, 2004 at 05:09:06AM +0200, Christian Henz wrote:

> for a in *.wav; do lame $a `echo $a | sed 's/\(.*\)wav$/\1mp3/'`; done
>
less messy (and faster executing) is to let bash do the substituting:

  for a in *.wav ; do lame $a ${a/.wav/.mp3} ; done

-- 
Anahata
anahata at treewind.co.uk -+- http://www.treewind.co.uk
Home: 01638 720444         Mob: 07976 263827


More information about the linux-audio-user mailing list