Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rdemeter
GitHub Repository: rdemeter/so
Path: blob/master/lab0/while.sh
217 views
1
#!/bin/bash
2
3
echo "read the input until the number is smaller then 10"
4
5
echo -n "insert a number: "
6
read num;
7
while ((num > 9))
8
do
9
echo -n "wrong number, try again: "
10
read num;
11
done
12
13
echo "correct number! num = $num"
14
15
exit
16
17