Not correct while syntax for unix

replace for i while i<300

with (note space after [ and before ])

while [ $i -lt 300 ]
do
...
done

In unix use only one \ for continuation


>Friends,
>
>I have been trying to make seq of images .
>I have tried mostly on windows - but i have also tried linux sh.
>nether of my efforts have worked.
>
>goal :: create 300 pngs , size = 720x480 , each is Black with white text of
>1 incrementing to 300 , 0-300.pngs
>
>--------------------( linix
>
>in a file make300.sh
>
>#!/bin/sh
>for i while i<300
>do
>echo $i
>mogrify -normalize \\
>-size 720 x 480 \\
>-bordercolor yellow -border 5 \\
>-fill white \\
>-font \\
>-*-Times \\
>-gravity center \\
>-draw 'text 20,20 $i\\
>$i.png
>$i=$i+1
>done
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to