Gentoo Archives: gentoo-user

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 18:06:40
Message-Id: 4F510B8B.80907@libertytrek.org
In Reply to: Re: [gentoo-user] Filter grep output of 'ps aux' by Pandu Poluan
1 On 2012-03-02 12:56 PM, Pandu Poluan <pandu@××××××.info> wrote:
2 >
3 > On Mar 3, 2012 12:49 AM, "Tanstaafl" <tanstaafl@×××××××××××.org
4 > <mailto:tanstaafl@×××××××××××.org>> wrote:
5 > >
6 > > Does anyone know if there is a way to filter the output of ps aux to
7 > show only lines that have a value in the %CPU column higher than x - ie,
8 > 1.0, or 2.0, or something like that?
9 > >
10 > > Thanks
11 > >
12 >
13 > For that, you need awk instead of grep.
14
15 Never used awk... any chance you (or someone) could provide an example
16 of how to do this?
17
18 Also - would there be a way to get a running output (kind of like
19 tailing a log)?

Replies

Subject Author
Re: [gentoo-user] Filter grep output of 'ps aux' Jason <gentoo@××××××××××.net>