On Fri, Mar 2, 2012 at 12:24 PM, Pandu Poluan <pa...@poluan.info> wrote: > > On Mar 3, 2012 1:07 AM, "Paul Hartman" <paul.hartman+gen...@gmail.com> > wrote: >> >> On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl <tansta...@libertytrek.org> >> wrote: >> > Does anyone know if there is a way to filter the output of ps aux to >> > show >> > only lines that have a value in the %CPU column higher than x - ie, 1.0, >> > or >> > 2.0, or something like that? >> >> ps aux | gawk '{ if ( $3 > 1.0 ) { print } }' >> > > Why would you use "if"? You can easily use this : > > ps aux | awk '$3 > 1.0 {print}'
because I don't know awk very well ;)