summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@banno.com>2013-08-22 15:26:26 -0500
committerLevi Bostian <levi.bostian@banno.com>2013-08-22 15:26:26 -0500
commit1a8b22cb4f51b6302e1411ecd94851270fd42eaf (patch)
tree69fc54eec85461171ece54ccc9726f7ee685c14c /bash.html.markdown
parent598fe61e1a9968eb633d97ef214b01c7d3f0d942 (diff)
Add while loop to bash
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 7421f880..1473e669 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -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 ))