Mark Perry wrote:
McKown, John wrote:
Is there a handy utility that I've missed which will tell me the longest
line in a text file? I'm looking at something that I could use to
determine if a text file should be printed in portrait or landscape
mode, depending on the longest line length.


Just did that today ;-)

use wc -L

Talk about a preemptive bid!

I was thinking of other ideas, maybe redefining the question to "Are
there any lines longer than 80 chars" and the constructing a regex to
match one. eg '/.*/{81}'

I'll go back to sleep.


--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to