摘要: 第一种:   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 ... 阅读全文
posted @ 2010-05-28 17:46 waynechen 阅读(555) 评论(0) 推荐(1) 编辑
摘要: #!/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... 阅读全文
posted @ 2010-05-28 17:14 waynechen 阅读(381) 评论(0) 推荐(0) 编辑