LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] A little grep mystery

[ILUG] A little grep mystery

Philip Reynolds phil at rfc-networks.ie
Tue Jun 4 11:43:20 IST 2002


I think you missed the point, which was, chopping at a character
length makes more sense when output is a tty, rather than when
output is a pipe (where the output is not going to be processed by
human eyes or possibly even be produced to a terminal).

Breathnach, Proinnsias (Dublin)'s [breatpro at exchange.ie.ml.com] 27 lines of wisdom included:
> Um, Padraig ....
> tty generally has a term-width variable which ps can use, so chopping to 80
> may not be sensible ... on the other hand, many utils (esp on older systems)
> had a STDIN width of what was then tty standard 80 cols, which is where the
> limitation began.
> 
> I'd imagine _most_ utils nowadays can take more than 80 cols on STDIN /
> piped input, but not all, so it only makes sense to retain the limitation
> until such time as the utils are upgraded.

-- 
  Philip Reynolds        
   RFC Networks          tel: 01 8832063
www.rfc-networks.ie      fax: 01 8832041




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell