#somehow increment cnt and go through loop again cnt=cnt + 1 # ^^^^^^^^^^^ wrong language but message should be clear Tom Painter ut-emx!mybest!painter or uunet!bigtex!mybest!painter ---------- The proper syntax is to use expr: cnt=`expr $cnt + 1` Michael Morrell