Test lite mer while-satser
This commit is contained in:
parent
3ee091887f
commit
f561ee1e9d
14
Labb5/test_while2.sh
Executable file
14
Labb5/test_while2.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Jack-Benny Persson
|
||||||
|
# LX13
|
||||||
|
# Just testing some while again
|
||||||
|
|
||||||
|
Num=0
|
||||||
|
|
||||||
|
while [ $Num -lt 5 ]; do
|
||||||
|
read -p "Enter something: " Test
|
||||||
|
let Num++ # Or use ((Num++)) or Num=$[Num+1]
|
||||||
|
echo ""
|
||||||
|
echo "U entered $Test and this is the $Num time you run the loop"
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user