我在这里学习教程:http: //bash.cyberciti.biz/guide/If..else..fi#Number_Testing_Script
我的脚本看起来像:
lines=`wc -l $var/customize/script.php`
if test $lines -le 10
then
echo "script has less than 10 lines"
else
echo "script has more than 10 lines"
fi
但我的输出看起来像:
./boot.sh: line 33: test: too many arguments
script has more than 10 lines
为什么它说我有太多的争论?我看不出我的脚本与教程中的脚本有何不同。