摘要:
#!/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 阅读全文