AWK script to print line with the largest number of fields

Viewed 2339

The script below displays the largest number of fields in twister.txt.

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

My question is, How do you display the line itself, which has the largest number of fields in twister.txt.

1 Answers
Related