summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorNami-Doc <vendethiel@hotmail.fr>2014-09-08 21:53:11 +0200
committerNami-Doc <vendethiel@hotmail.fr>2014-09-08 21:53:11 +0200
commit28e43b32f0d5d0e33bfbaa50342f7e3dd5b114e3 (patch)
tree4e8eadce314529d1287fe547a51ee728fae5e610 /bash.html.markdown
parenteab554a7a7f2869ff7dac9f54acce9a7ed55cfa4 (diff)
parentb35ccf01af17b52447c98d7101ee932e7f089c52 (diff)
Merge pull request #748 from levibostian/clean-up-issues
Clean up issues
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