Bash/Shell Script Arrays | Sany's Linux and Open Source Blog

Bash/Shell Script Arrays | Sany's Linux and Open Source Blog

瀏覽:1465
日期:2024-08-24
Bash/Shell array position starts form 0. Define an array $ names=( a b c d e f g h i j ) Print all values in array $ echo "${names[@]}" Output: a b c d e f g h i j Print value form position 2 in array $ echo "${names[0]}" Output: a Remove multiple…...看更多