[PLUG] Why is grep truncating output?

Russ Johnson russj at dimstar.net
Mon Dec 30 12:10:06 UTC 2002


Tell 'ps' to output wide date like so:

ps awwwx | grep whatever

'w' = wide
'ww' = wider
'www' = widest

Russ

Scott Chapman wrote:

>I'm using RedHat Linux 7.3 with 2.4.18-3 kernel.  When I do ps -ef | grep ' ' 
>(or grep for other things) it truncates the output to 80 columns (and grep 
>doesn't match stuff beyond the 80th column either).
>
>If I do set | grep ' ' the output is not truncated.
>
>If I grep a file (grep ' ' .bash_history) I don't get truncated output.
>
>Can someone explain what's going on and how to fix this?
>






More information about the PLUG mailing list