DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Arrays / Lists — Example 50

Quick explanation + ready code for: Arrays / Lists.

Shell Arrays / Lists Back to examples
Back to language
Syntax: Arrays / Lists in Shell. ID: #50

Code

arr=(6 7 8)
echo "${arr[@]}"

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.