bash: array - Print elements of an array.
-
Take into account the main readme for this section. README first.
$ declare -a planet=(earth wind fire)
Print elements 0 and 2, array elements start from zero.
$ echo "${planet[0]}" earth $ echo "${planet[2]}" fire
© Lightnetics 2024