RosettaCodeData/Task/Conditional-structures/UNIX-Shell/conditional-structures-5.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

11 lines
130 B
Bash

# This is a while loop
l=1
while [ l -le 5 ]; do
echo $l
done
# This is an until loop
l=1
until [ l -eq 5 ]; do
echo $l
done