I'm following the tutorial here: http://bash.cyberciti.biz/guide/If..else..fi#Number_Testing_Script
My script looks like:
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 but my output looks like:
./boot.sh: line 33: test: too many arguments script has more than 10 lines Why does it say I have too many arguments? I fail to see how my script is different from the one in the tutorial.