I\'m looking for a simple way to find the length of the longest line in a file. Ideally, it would be a simple bash shell command instead of a script.
Here are references of the anwser
cat filename | awk '{print length, $0}'|sort -nr|head -1
http://wtanaka.com/node/7719