/ Published in: Bash

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
