HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Help needed with loop.



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.*




Project hosted by iFAX Solutions