[ale] Line truncation in a terminal....

John Wells jb at sourceillustrated.com
Wed Oct 2 09:41:40 EDT 2002


Cool.  Thanks.  Wonder why when you run ps and just send results to
stdout, the -w behavior is default.  However, when you pipe through to
grep, you have to specify the -w to get the same output.

Interesting.

Thanks,

John

Geoffrey said:
> You didn't use the google site search? :)  I think there was a
> discussion on the list recently regarding the '-w' option to ps.
>
> John Wells wrote:
>> If I do a "ps -ef", the lines returned span the entire width of my
>> current terminal.
>>
>> However, if I do a "ps -ef | grep something", the resulting lines
>> truncate at around 63 characters.
>>
>> Another problem is that, in the first case, if the line goes beyond
>> what my terminal can display, it *doesn't* wrap....I just can't see
>> those lines.
>>
>> What explains the difference in behavior here, and what can I change
>> to control it?  I'm assuming it's based on TERM setting, but would
>> like some more info...
>>
>>
>> Thanks as always,
>>
>> John
>>
>>
>>
>>
>>
>> ---
>> This message has been sent through the ALE general discussion list.
>> See http://www.ale.org/mailing-lists.shtml for more info. Problems
>> should be  sent to listmaster at ale dot org.
>>
>>
>
>
> --
> Until later: Geoffrey		esoteric at 3times25.net
>
> I didn't have to buy my radio from a specific company to listen
> to FM, why doesn't that apply to the Internet (anymore...)?
>
>
> ---
> This message has been sent through the ALE general discussion list. See
> http://www.ale.org/mailing-lists.shtml for more info. Problems should be
>  sent to listmaster at ale dot org.




---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list