mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-16 03:34:53 +02:00
Add while loop to bash
This commit is contained in:
@@ -53,6 +53,13 @@ else
|
||||
echo "And this is not"
|
||||
fi
|
||||
|
||||
# And the usual while loop:
|
||||
while [true]
|
||||
do
|
||||
echo "put loop content here..."
|
||||
break
|
||||
done
|
||||
|
||||
# Expressions are denoted with the following format:
|
||||
echo $(( 10 + 5 ))
|
||||
|
||||
|
Reference in New Issue
Block a user