diff options
| author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-04-16 22:14:09 +0200 |
|---|---|---|
| committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-04-16 22:14:09 +0200 |
| commit | 3749ec540acb5663c405ad88f893076202ea7ae4 (patch) | |
| tree | 465dbec6f00ed6a843c754f26912af968d3215b4 /bash.md | |
| parent | 4c89df889ec0c33c89e2c787dbed1bfe4449c07c (diff) | |
Diffstat (limited to 'bash.md')
| -rw-r--r-- | bash.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -26,6 +26,12 @@ Loop over integers for i in `seq 10`; do echo $i; done +Loop over lines of file: + + while IFS= read -r line; do + echo "tester: $line" + done < "$1" + ## Conditionals * `-z`: is empty string |