Date: Wed, 7 Jan 2009 08:54:41 -0600 (CST) From: "Sean C. Farley" <scf@FreeBSD.org> To: Ulrich Spoerlein <uspoerlein@gmail.com> Cc: freebsd-hackers@FreeBSD.org, Sheldon Givens <sheldon@sigsegv.ca> Subject: Re: Small change to 'ps' Message-ID: <alpine.BSF.2.00.0901070851560.43659@thor.farley.org> In-Reply-To: <20090107125759.GA1462@roadrunner.spoerlein.net> References: <f4ecc0930901061152q2ad01c4fj42dec8ad9fb201fa@mail.gmail.com> <20090107125759.GA1462@roadrunner.spoerlein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Jan 2009, Ulrich Spoerlein wrote: > On Tue, 06.01.2009 at 11:52:39 -0800, Sheldon Givens wrote: >> Hello everyone, >> >> It occurs to me that FreeBSD ps lacks the ability to disable header. >> This seems like a really obvious feature, and I may have simply >> missed it's existence (despite my relentlessly searching the man >> page) but here is a small patch that sets the flag 'n' to disable >> header output. > > You've missed it, probably because it is non-obvious: > > % ps -p 1 -o pid,cpu > PID CPU > 1 0 > % ps -p 1 -o pid= -o cpu= > 1 0 > % Another way: ps | tail +2 Sean -- scf@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0901070851560.43659>