"Strong Scripting Skills" - a definition? - sunday

Danny Howard dannyman at toldme.com
Tue Jan 27 13:00:48 PST 2004


On Tue, Jan 27, 2004 at 07:55:08AM -0800, Robert Hajime Lanning wrote:
> <quote who="Jordan Johnson">
> > Better still... awk '$n ~ /foo/ { print $2 }' # where n is the
> > proper field
> >
> > I was surprised to not see that in the awkish examples flying by...
> 
>   root 24570     1  0   Oct 31 ?        0:10 /usr/local/apache/bin/httpd -DSSL
> defang  7665   212  0 07:03:02 ?        0:14 /bin/perl -w mimedefang.pl -server
> 
> This is the problem with choosing a field.  Hint, look at the process
> start time.  This maybe avoided with options to ps, I haven't looked.
> This is "ps -ef" on Solaris.  The Linux "ps auxw" and "ps -ef" the
> start time would be "Oct31", so, it is not an issue there.

That looks like a job for cut(1).

-d

-- 
http://dannyman.toldme.com/



More information about the Baylisa mailing list