From 1a8b22cb4f51b6302e1411ecd94851270fd42eaf Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Thu, 22 Aug 2013 15:26:26 -0500 Subject: Add while loop to bash --- bash.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bash.html.markdown') 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 )) -- cgit v1.2.3