public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tanstaafl <tanstaafl@libertytrek.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Filter grep output of 'ps aux'
Date: Fri, 02 Mar 2012 15:39:53 -0500	[thread overview]
Message-ID: <4F513019.9030601@libertytrek.org> (raw)
In-Reply-To: <CAEH5T2NVid8jR7AXsOijLsm9ixZYD=EY4k1TcJS7kH4ezPvs7w@mail.gmail.com>

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?



  reply	other threads:[~2012-03-02 20:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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           ` Tanstaafl [this message]
2012-03-02 20:50             ` Paul Hartman
2012-03-02 21:23               ` Tanstaafl
2012-03-02 21:52                 ` Paul Hartman
2012-03-03 13:00                   ` Tanstaafl
2012-03-02 18:02 ` Paul Hartman
2012-03-02 18:12   ` Tanstaafl
2012-03-02 18:30     ` Alan McKinnon
2012-03-02 18:24   ` Pandu Poluan
2012-03-02 19:32     ` Paul Hartman
2012-03-02 19:40     ` [gentoo-user] " Grant Edwards
2012-03-03  2:16       ` Pandu Poluan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F513019.9030601@libertytrek.org \
    --to=tanstaafl@libertytrek.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox