[linux-audio-user] lame and filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux