摘要:
第一种: area[11]=23 area[22]=25echo "area[11]=${area[11]}"第二种: area2=(zero one two three four)echo "area2[0]=${area[0]}" 第三种: area3([11]=23 [22]=25)echo "area[11]=${area[11]}"#!/bin/bashline[1]="I ... 阅读全文
摘要:
#!/bin/bash#and listif [ ! -z "$1" ]&&echo "argument #1=$1"&&[ ! -z "$2" ]&&echo "argment #2=$2"thenecho "at least 2 argumnets passed to script."elseecho "less than 2 arguments... 阅读全文