Tech Support > Operating Systems > Linux / Variants > Piping PS truncates lines?
Piping PS truncates lines?
Posted by Wally Sanford on November 25th, 2003


I noticed that if I try someting like:

ps -ux | sort -rk 3 | head -n 25

or

ps f -e | grep perl

I get back the correct lines, but they are always truncated to 80 lines?

It seems to me that this is the doing of the ps command (if it thinks
it's being piped?)

Is there any way to force it to give full lines?

Thanks for any help.


Posted by Steve Wolfe on November 25th, 2003


Look in the man page for the "--cols" or "--columns" option. It's
amazing what you can find in the man pages!

steve



Posted by mjt on November 25th, 2003


On Tue, 25 Nov 2003 13:09:03 -0800, "Wally Sanford" <wsanford@wallysanford.com> wrote:

.... "man ps" ???
..
--
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
Today's scientific question is: What in the world is electricity?
And where does it go after it leaves the toaster?


Similar Posts