#length of longest line $ awk '{ if (length($0) > max) max = length($0) }; END { print max }' wine.txt #pedestrian $ awk 'length($0)>max{max=length($0)};END{print max}' wine.txt #interesting $ awk 'length>max{max=length};END{print max}' wine.txt #beat this!