LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how many chars can be displayed in a line? (https://www.linuxquestions.org/questions/linux-software-2/how-many-chars-can-be-displayed-in-a-line-246991/)

williamjxj 10-25-2004 03:00 AM

how many chars can be displayed in a line?
 
Hi, there,

I would like to ask 2 questions about the line display:

1) when I use xterm to key in 'ps ax |grep httpd', the result only display the fist 80 chars, actually that there are much more than 80 chars. I remember netterm can ajust the chars to 130 chars per line. I wonder the display is related to certain terminal type, or can control by commands?

2) how to control chars number per line in a printing environment? when I have a file that contains more than 100 columns in a line, how to make 'lp' to fully print the file, instead of lost the chars at the end of each line?

Thanks a lot,
william

bigrigdriver 10-25-2004 03:24 AM

I suggest you study the man pages for ps. The --col option may be what you need to keep from loosing output.
To pipe output to a printer, consider piping througn enscript (see man enscript for info on formating options).

Aside: most apps I've encountered have a 255 char limit on input lines.


All times are GMT -5. The time now is 06:24 PM.