summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
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 d208b957..afc46eb0 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -115,6 +115,13 @@ do
echo "$VARIABLE"
done
+# while loop:
+while [true]
+do
+ echo "loop body here..."
+ break
+done
+
# You can also define functions
# Definition:
function foo ()