* Re: [gentoo-user] Filter grep output of 'ps aux'
@ 2012-03-02 20:39 99% ` Tanstaafl
0 siblings, 0 replies; 1+ results
From: Tanstaafl @ 2012-03-02 20:39 UTC (permalink / raw
To: gentoo-user
On 2012-03-02 2:33 PM, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> And you can use the --sort options for ps to sort by cpu or anything
> you like (see the manpage)
Even better, thanks Paul...
watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'"
does exactly what I want...
Hmmm... is there an easy way to include the column headers?
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-03-02 17:46 [gentoo-user] Filter grep output of 'ps aux' Tanstaafl
2012-03-02 17:56 ` Pandu Poluan
2012-03-02 18:03 ` Tanstaafl
2012-03-02 18:12 ` Jason
2012-03-02 18:32 ` Tanstaafl
2012-03-02 19:33 ` Paul Hartman
2012-03-02 20:39 99% ` Tanstaafl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox