Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Filter grep output of 'ps aux'
Date: Fri, 02 Mar 2012 18:04:23
Message-Id: CAEH5T2Pqfr2S3BOOkuCA=G3e3V7xYEp34-Y9OrsejpOXBW2cBA@mail.gmail.com
In Reply to: [gentoo-user] Filter grep output of 'ps aux' by Tanstaafl
1 On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl <tanstaafl@×××××××××××.org> wrote:
2 > Does anyone know if there is a way to filter the output of ps aux to show
3 > only lines that have a value in the %CPU column higher than x - ie, 1.0, or
4 > 2.0, or something like that?
5
6 ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'

Replies

Subject Author
Re: [gentoo-user] Filter grep output of 'ps aux' Tanstaafl <tanstaafl@×××××××××××.org>
Re: [gentoo-user] Filter grep output of 'ps aux' Pandu Poluan <pandu@××××××.info>