[lug] simple script

rotering at animalcules.com rotering at animalcules.com
Mon Oct 8 21:43:55 MDT 2001


On Mon, Oct 08, 2001 at 09:17:00PM -0400, Taz wrote:

> for i in *.bmp
>         do
>         echo "converting " $i " to .jpg format"
>         convert $i $i.jpg
> done

Change the convert line to:

          convert $i `basename $i bmp`jpg

Note the direction of the single quotes.



More information about the LUG mailing list