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@xxxxxxxxxxxxxx -+- http://www.treewind.co.uk Home: 01638 720444 Mob: 07976 263827