Test lite mer while-satser

This commit is contained in:
Jack-Benny Persson 2013-12-14 11:25:37 +01:00
parent 3ee091887f
commit f561ee1e9d

14
Labb5/test_while2.sh Executable file
View 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