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