diff options
author | Adam <adam@adambard.com> | 2014-09-11 16:17:21 +0200 |
---|---|---|
committer | Adam <adam@adambard.com> | 2014-09-11 16:17:21 +0200 |
commit | a7c89acfcf2eb1cd5e172b8f3d5fabccabcd2003 (patch) | |
tree | 65257f3b763b9dddde6d3ecc264d06b06cc4cc74 /bash.html.markdown | |
parent | 3addfcf7148c8da62c3523de7fff7ea55d31084a (diff) | |
parent | 6c0018c4b7457e0bf9873627af366b349b194637 (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'bash.html.markdown')
-rw-r--r-- | bash.html.markdown | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bash.html.markdown b/bash.html.markdown index 57fb5c55..dc7d32b6 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -8,6 +8,7 @@ contributors: - ["Denis Arh", "https://github.com/darh"] - ["akirahirose", "https://twitter.com/akirahirose"] - ["Anton Strömkvist", "http://lutic.org/"] + - ["Rahil Momin", "https://github.com/iamrahil"] filename: LearnBash.sh --- @@ -140,6 +141,12 @@ do echo "$VARIABLE" done +# Or write it the "traditional for loop" way: +for ((a=1; a <= 3; a++)) +do + echo $a +done + # They can also be used to act on files.. # This will run the command 'cat' on file1 and file2 for VARIABLE in file1 file2 |