m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash.md b/bash.md
index e6e54f3..dc12446 100644
--- a/bash.md
+++ b/bash.md
@@ -22,6 +22,11 @@ Loop over files
for file in glob/*; do something $file; done
+Loop over integers
+
+ for i in `seq 10`; do echo $i; done
+
## Conditionals
* `-z`: is empty string
+* `-f`: is regular file