/ Published in: Bash
![](/img/icon_sav.png?v3)
Arrays in POSIX Shell
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Prepare array A=; for i in a b c d; do A="$A$i:"; done; echo $A; # Iterate over while [ -n "${A}" ]; do I="${A%%:*}"; echo "${I}"; A="${A#*:}"; done
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)