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

Re: filename prefixes while transfering images from memory cards



theo wrote:
> Ron Johnson wrote:
> 
>>>        b=`basename $i .jpg`
> 
> or b=${i%.jpg}
> (basename doesn't work with spaces in filenames).
> 
> cheers,
> theo.


I does if you use double quotes:
$> for f in *.jpg; do bn=`basename "$f" .jpg`; echo $bn; done

->HS



Reply to: