Commit 13489b37 authored by Sailendra Kumar's avatar Sailendra Kumar

q4.awk added

parent 37e5678d
#! /usr/bin/awk -f
BEGIN {
marks=0;
}
NR==FNR{corr_ans[$0]++;next}
{
for(row in corr_ans){split(row,arr," ");if(arr[1] == $1){for(num in arr){if((num > 1) && arr[num] == $num){marks++;}}}}
}
END{
print marks;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment