On Feb 19, 2009, at 8:02 PM, Joshua Lutes wrote:
> Is there a way to capture the expanded group and reference it in the
> command so it will output a wav file with the same name as the mp3
> file?  Does that make sense?  Thanks,
>



How about this one liner (bash):

     for file in *.mp3; do mpg123 -w "`basename "$file" .mp3`.wav"  
"$file"

That probably will not work for files with spaces (cause of the for  
loop). I can provide a revised version for that.

--Dave
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to