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 From de5a359faadffadbff1ccb19ad584ffb1c906796 Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Thu, 19 Sep 2013 16:48:09 -0500 Subject: Edit wording of while loop in bash. --- bash.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash.html.markdown') diff --git a/bash.html.markdown b/bash.html.markdown index 1473e669..2faa4988 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -53,10 +53,10 @@ else echo "And this is not" fi -# And the usual while loop: +# while loop: while [true] do - echo "put loop content here..." + echo "loop body here..." break done -- cgit v1.2.3