AWK script to print line with the largest number of fields AWK script to print line with the largest number of fields unix unix

AWK script to print line with the largest number of fields


awk '{if (NF > max) {max = NF; line=$0}} END{print line}' twister.txt