当前位置: 技术问答>linux和unix
大家帮忙看看为何25行会报 < 符号不匹配的错误,谢谢!
来源: 互联网 发布时间:2016-10-01
本文导语: +18 v_file=`cat filelist.txt | grep "[0-9][0-9]01_[0-9][0-9]10_售出货品.txt"` +19 v_flag=0 +20 +21 while [ $v_flag -eq 0 ] +22 do +23 if [ `tail -5 $v_file | grep "rows selected" | wc -l` -eq 1 ]; then +24 v_flag...
+18 v_file=`cat filelist.txt | grep "[0-9][0-9]01_[0-9][0-9]10_售出货品.txt"`
+19 v_flag=0
+20
+21 while [ $v_flag -eq 0 ]
+22 do
+23 if [ `tail -5 $v_file | grep "rows selected" | wc -l` -eq 1 ]; then
+24 v_flag=1
+25 ftp -in $ip +27 bin
+28 prompt
+29 mput $v_file
+30 !
+31 if [ $? -eq 0 ]; then
+32 echo "`basename ${0}`:文件 $v_file 已成功上传!"
+33 rm -f $v_file
+34 fi
+35 else
+36 v_flag=0
+37 ./dx_callcause_1.sh >> duanxin.log 2>&1
+38 fi
+39 done
./duanxin.sh[21]: 0403-057 Syntax error at line 25 : `
+19 v_flag=0
+20
+21 while [ $v_flag -eq 0 ]
+22 do
+23 if [ `tail -5 $v_file | grep "rows selected" | wc -l` -eq 1 ]; then
+24 v_flag=1
+25 ftp -in $ip +27 bin
+28 prompt
+29 mput $v_file
+30 !
+31 if [ $? -eq 0 ]; then
+32 echo "`basename ${0}`:文件 $v_file 已成功上传!"
+33 rm -f $v_file
+34 fi
+35 else
+36 v_flag=0
+37 ./dx_callcause_1.sh >> duanxin.log 2>&1
+38 fi
+39 done
./duanxin.sh[21]: 0403-057 Syntax error at line 25 : `