bash shell script array的相關公司資訊
UNIX Command Line: Using array in bash script

UNIX Command Line: Using array in bash script

瀏覽:1029
日期:2025-04-23
An example to illustrate the use of arrays in bash scripting. #!/bin/sh #Bash array implementation array=(bash ksh csh) len=${#array[*]} #Num elements in array echo "Array has $len members.They are:" i=0 while [ $i -lt $len ]; do echo "$i: ${array[$i]}" l...看更多