This is a count down script in bash, until with specified limits,
limit=10
until [ $limit -lt 5 ]; do
echo Hello, $limit
let limit-=1
done
Sample bash until loop
developer@codetryout:~$ until [ $limit -lt 5 ]; do
> echo Hello, $limit
> let limit-=1
> done
Hello, 10
Hello, 9
Hello, 8
Hello, 7
Hello, 6
Hello, 5
This is an example script for shell script bash, until loop