RosettaCodeData/Task/Conditional-structures/UNIX-Shell/conditional-structures-5.sh

12 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