摘要: #!/bin/shif [ $# -gt 1 ]; then 空格也要注意echo "Uage: $0[FileName]"exit 1elif [ $# -eq 1 ]; thenmyFileName=$1echo $myFileNameelsemyFileName=$0echo "/home/hadoop/"$myFileNamefiif [ ! -f"$file" ];then //!和-f 之间要有空格 echo "$myFileName does not exit!" exit 1fiMY_LINE_NO 阅读全文
posted @ 2012-06-05 10:33 glose 阅读(2496) 评论(0) 推荐(0) 编辑