summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authoralexandre medeiros <alexandre.medeiros@students.ic.unicamp.br>2013-09-22 11:09:28 -0300
committeralexandre medeiros <alexandre.medeiros@students.ic.unicamp.br>2013-09-22 11:09:28 -0300
commit96055ac7a513fef69fd4323df465537b8df835c4 (patch)
tree7b99abe37506a352032f6972de31519bc4e18024 /bash.html.markdown
parent9c8c0af0af1caef57f463c7c41e56ccc76f414d6 (diff)
better for description
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown7
1 files changed, 4 insertions, 3 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index f281c1eb..fe17e710 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -106,9 +106,10 @@ case "$VARIABLE" in
*) echo "It is not null.";;
esac
-#For loops iterate for as many arguments given:
-#The contents of var $VARIABLE is printed three times.
-for VARIABLE in x y z
+# For loops iterate for as many arguments given:
+# The contents of var $VARIABLE is printed three times.
+# Note that ` ` is equivalent to $( ) and that seq returns a sequence of size 3.
+for VARIABLE in `seq 3`
do
echo "$VARIABLE"
done