Can someone show, how to use awk command to identify the longest line in a text file.
Thanks
awk '{ if (length($0) > longest) longest = length($0); } END { print longest }'