Note that the following looping constructs do not work on the Mac.

  for i in `seq 1 300`; do
...
done

There is no seq command on the Mac OS

and

for i in {1..300}; do
...
done


The only ones that i have found that work on Mac OS are

i=1
while [ $i -le 300 ]; do
...
i=`expr $i + 1`
done


or


for ((i=1;i<=300;i++)); do
...
done


>On Monday 02 June 2008 09:29, Fred Weinhaus wrote:
>  > Not correct while syntax for unix
>  >
>  > replace for i while i<300
>  >
>  > with (note space after [ and before ])
>  >
>  > while [ $i -lt 300 ]
>  > do
>  > ...
>  > done
>
>You can also do this:
>
>for i in {1..300}; do
>   echo $i
>done
>
>No need to increment the counter :)
>
>brian
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to