From: | Tanstaafl <tanstaafl@×××××××××××.org> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Filter grep output of 'ps aux' | ||
Date: | Fri, 02 Mar 2012 20:41:18 | ||
Message-Id: | 4F513019.9030601@libertytrek.org | ||
In Reply to: | Re: [gentoo-user] Filter grep output of 'ps aux' by Paul Hartman |
1 | On 2012-03-02 2:33 PM, Paul Hartman <paul.hartman+gentoo@×××××.com> wrote: |
2 | > And you can use the --sort options for ps to sort by cpu or anything |
3 | > you like (see the manpage) |
4 | |
5 | Even better, thanks Paul... |
6 | |
7 | watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'" |
8 | |
9 | does exactly what I want... |
10 | |
11 | Hmmm... is there an easy way to include the column headers? |
Subject | Author |
---|---|
Re: [gentoo-user] Filter grep output of 'ps aux' | Paul Hartman <paul.hartman+gentoo@×××××.com> |