8000 add a while loop shell script · mikephp/basic_data_struct@0beba0f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0beba0f

Browse files
committed
add a while loop shell script
1 parent 00458cd commit 0beba0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/shell/declare_i.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare -i i
2+
i=10
3+
while [ $i -gt 0 ]
4+
do
5+
echo $i
6+
i=i-1
7+
done > "a.txt"

0 commit comments

Comments
 (0)
0