mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Add while loop to bash
This commit is contained in:
parent
598fe61e1a
commit
1a8b22cb4f
@ -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 ))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user