BASH Scripting Lesson 5 using WHILE loops



BASH Scripting Lesson 5 using WHILE loops

BASH Scripting Lesson 5 using WHILE loops

More videos like this online at http://www.theurbanpenguin.com
Having spent a little time looking at conditional statements within BASH scripting we will now look at looping structures and the first loop we will look at is while. very often used in menu system we can keep the loop running while a condition is true:
while true
do
echo “hello”
done

We will see two basic while loops, one looking at a counter and the 2nd providing a simple menu to the CASE statements we looked at in Lesson 4

Comments are closed.