Nick Rout wrote:

#!/bin/bash

iter=$1
while $iter>0 ; do
echo "rubbish"
iter=$iter-1
done

but
./test 13

gives ./test: 13: command not found

its trying to execute the command '13"
Of course it is.  Try reading the man page for 'test'.
You'll also need to stick $((iter-1)) in there too.

Cheers, Rex

Reply via email to