linux:bash
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:bash [11/04/2025 15:50] – andrew | linux:bash [21/05/2025 13:32] (current) – [Arrays] andrew | ||
---|---|---|---|
Line 192: | Line 192: | ||
===== while loop ===== | ===== while loop ===== | ||
- | | + | Multiline: |
- | { | + | |
- | print "$line\n"; | + | |
- | } | + | |
- | | + | |
+ | print "$SOMETHING\n"; | ||
+ | } | ||
+ | | ||
+ | |||
+ | |||
+ | On one line:- | ||
+ | while [ condition ]; do print " | ||
+ | |||
===== Time duration of operation and record exit status ===== | ===== Time duration of operation and record exit status ===== | ||
Line 319: | Line 328: | ||
- | ===== Arrays ===== | + | ===== Arrays |
Bash array example, indices start at zero, so below [1] returns the second element (' | Bash array example, indices start at zero, so below [1] returns the second element (' |
linux/bash.1744386655.txt.gz · Last modified: by andrew