Skip to content

Commit 56bcc07

Browse files
authored
Create While_loop_example.sh
1 parent 65f8dbd commit 56bcc07

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

While_loop_example.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
#While Syntex
4+
5+
<<Commnet
6+
while [ condition ]
7+
do
8+
command1
9+
command2
10+
command3
11+
done
12+
13+
Comment
14+
15+
#!/bin/bash
16+
a=0
17+
18+
while [ $a -lt 10 ]
19+
do
20+
echo $a
21+
a=`expr $a + 1`
22+
done

0 commit comments

Comments
 (0)