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

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

瀏覽:745
日期:2025-07-02
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…...看更多