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

Re: bash script to convert, compress



this seems good for start.
what about the compression and deletion of the converted files?


 

----- Original Message -----

From: Chris Davies

Sent: 12/28/12 01:55 PM

To: debian-user@lists.debian.org

Subject: Re: bash script to convert, compress


 
Rob Owens <rowens@ptd.net> 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 debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org 
Archive: http://lists.debian.org/[🔎] pud0r9xeqs.ln2@news.roaima.co.uk

 




Reply to: