![]() |
I want to build a loop in my script that loops until i gets equal to NRPAGES. but i cant get it to work what am i doing wrong? This is what i hav now. declare -i i NRPAGES=`grep Pages: ${FAXFILE} | awk ' /[[:digit:]]/ { gsub(/%%Pages: /,""); print }' ` i=1 while [ "$i" -lt "${NRPAGES}" ]; do ... ... ... i=$i+1 done Thanks \Jonny Axelsson ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*