mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00: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"
|
echo "And this is not"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# And the usual while loop:
|
||||||
|
while [true]
|
||||||
|
do
|
||||||
|
echo "put loop content here..."
|
||||||
|
break
|
||||||
|
done
|
||||||
|
|
||||||
# Expressions are denoted with the following format:
|
# Expressions are denoted with the following format:
|
||||||
echo $(( 10 + 5 ))
|
echo $(( 10 + 5 ))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user