m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-31 14:16:29 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-31 14:16:29 +0200
commite1979c646ab0a11a06020b6126db926397d8bffd (patch)
treec2a7b32b3333bb900ea193132fb5b629b2ba8319
parent277d6495d0b0333b1ce1aa8e77919982522f0a19 (diff)
Add to bash
-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