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

Use your Android as a remote for garage door

Personal tools
Namespaces
Variants
Views
Actions
Navigation