How do you create an array in shell script?
Answer
How to Declare Array in Shell Scripting?
Answer
How to Declare Array in Shell Scripting?
- Indirect Declaration. In Indirect declaration, We assigned a value in a particular index of Array Variable. No need to first declare. …
- Explicit Declaration. In Explicit Declaration, First We declare array then assigned the values. declare -a ARRAYNAME.
- Compound Assignment.