How do I create an array in unix shell scripting?
相关问题
- How to get the return code of a shell script in lu
- How to get the maximum of more than 2 numbers in V
- Faster loop: foreach vs some (performance of jsper
- Convert Array to custom object list c#
- pick a random item from a javascript array
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- Numpy matrix of coordinates
- Check if directory exists on remote machine with s
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- PHP: Can an array have an array as a key in a key-
- Making new files automatically executable?
You can try of the following type :
There are multiple ways to create an array in shell.
${ARR[*]}
prints all elements in the array.Second way is:
${#ARR[@]}
is used to count length of the array.