摘要: 1. 数组#定义数组array=("163" "21cn" "sina" "qq")#获取数组长度echo ${#array[*]}#遍历数组for arr in ${array[*]}; do echo $arrdone2. 转换大小写# 使用typeset后必须重新赋值才起作用typeset -u content #uppercontent="Show Me The Money"echo $contenttypeset -l content #lowercontent="Show 阅读全文
posted @ 2013-01-02 11:26 傲雪星枫 阅读(206) 评论(0) 推荐(0) 编辑