> 
> Are we trying to optimize the thrown together?  How about one (1) line
> for both ???
> 
>       echo $file | sed 's!^.*/!!;s!\..*$!!'
> 

sed is powerful but I prefer the simplest way:

basename $file .mp3

Reply via email to