You could also use the "seq" program instead (which comes with coreutils): for i in `seq 1 $TEST`; do ... I'm not sure if that's more or less portable than using all these various bash features... -Miles -- `The suburb is an obsolete and contradictory form of human settlement'