摘要:
bash的数组1. 数组 元素个数:${#array[@]} 所有元素:${array[*]}2. 字符串 字符串长度:${#str} - 对比数组元素个数3. 运算 let "n=$n+1" <==> let "n++" $(( n = $n+1 )) <==> (( n=n+1 )) $[ n=$n+1 ] <==> n=$[ $n+1 ] (( n++ )) <==> $[ n++ ] 阅读全文
posted @ 2011-09-22 14:26 Chrisfang6 阅读(77) 评论(0) 推荐(0) 编辑