summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorkaernyk <kaernyk@users.noreply.github.com>2014-09-09 22:12:46 -0400
committerkaernyk <kaernyk@users.noreply.github.com>2014-09-09 22:12:46 -0400
commit48d022b54d57b246e9923cda5ac8dfb07b0235d1 (patch)
tree13fc24f1ddf852842aec31526d035f012bcfcb7c /bash.html.markdown
parentb492bf6f379d9b8ff9d29872b970f2c0f7e5fa41 (diff)
parentfb4b12c567c37144bd107f286b5858267a43eb8a (diff)
Merge pull request #2 from kaernyk/master
Update repo
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown7
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