Skip to content

Commit 805def5

Browse files
authored
Update III Control Statements in Bash Scripting.py
1 parent 7904413 commit 805def5

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Introduction to Bash Scripting/III Control Statements in Bash Scripting.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@
104104
"""
105105
*** FOR loops & WHILE
106106

107-
*** syntax
108-
for z in 1 2 3
109-
do
110-
echo $z
111-
done
107+
*** syntax
108+
for z in 1 2 3
109+
do
110+
echo $z
111+
done
112112

113113
# num range 'brace expansion'
114114
{START..STOP..INCREMENT}
@@ -141,3 +141,12 @@
141141
done
142142
-AirportBook.txt
143143
-FairMarketBook.txt
144+
145+
*** WHILE
146+
eg:
147+
x=1
148+
while [ $x -le 3 ];
149+
do
150+
echo $x
151+
((x+=1))
152+
done

0 commit comments

Comments
 (0)