Nhật Hương
Member
How do you create an array in Linux?
Answer
Create an array
Answer
Create an array
- Create indexed or associative arrays by using declare. We can explicitly create an array by using the declare command: $ declare -a my_array. …
- Create indexed arrays on the fly. …
- Print the values of an array. …
- Print the keys of an array. …
- Getting the size of an array. …
- Deleting an element from the array.