diff options
author | JohnYangSam <johnys@stanford.edu> | 2013-09-12 02:01:52 -0700 |
---|---|---|
committer | JohnYangSam <johnys@stanford.edu> | 2013-09-12 02:01:52 -0700 |
commit | 1528dd4fbe680f26646be3af17d9fb5dce209dd0 (patch) | |
tree | af224c14d7c5ce2b1f8922daa137f2ac7f0988df /bash.html.markdown | |
parent | b28900b889c27f8500a44d9f9bcad5244f1f79bd (diff) |
Correct bash for...in loop example
Removed the $ in the variable declaration of the for...in bash loop to correct the code.
Diffstat (limited to 'bash.html.markdown')
-rw-r--r-- | bash.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown index 76c794c6..708131bd 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -82,7 +82,7 @@ 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 VARIABLE in x y z do echo "$VARIABLE" done |