Skip to content

Commit 977a3a1

Browse files
authored
Create while_loop.sh
1 parent 7b5ff84 commit 977a3a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

while_loop.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
echo "while demo loop ..."
2+
i=1
3+
while [ $i -le 5 ]
4+
do
5+
echo $i
6+
i='expr $i + 1'
7+
done
8+
echo "while loop is over"

0 commit comments

Comments
 (0)