Rob Owens <[email protected]> wrote:
> $(basename $file wav)ogg

If you've got bash or some other suitable shell you can do this same
thing without resorting to a subprocess:

    W=/some/path/to/wavmusic.wav
    echo $(basename "$W" wav)ogg
    wavmusic.ogg

    echo "${W/%wav/ogg}"
    /some/path/to/wavmusic.ogg

Chris


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to