In Unix or Linux, how to determine the length of the longest line in a text file

Jump to: navigation, search

cat filename.txt|awk '{print length}' | sort | tail -1

See also

http://wtanaka.com/node/7719

Personal tools
Namespaces
Variants
Views
Actions
Navigation