awk portability fix

This commit is contained in:
Howard Chu 2007-11-29 13:45:55 +00:00
parent ffc37b70ef
commit 18a1a13ad7

View file

@ -417,7 +417,7 @@ esac
#not answerable because of sizelimit, queries contained in it are no longer
#answerable as well
ANSWERABILITY=111001
grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{
grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{
if (NR > FIRST) {
if ($2 == "NOT")
printf "Query %d not answerable\n",NR
@ -425,7 +425,7 @@ grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{
printf "Query %d answerable\n",NR
}
}'
ANSWERED=`grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{
ANSWERED=`grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{
if (NR > FIRST) {
if ($2 == "NOT")
printf "0"