This command also works to find the longest line from the file.
awk '{print $0,NF}' aaa|sort -n$NF|tail -1