Quick AWK help

From: Siva Singam Santhakumar (santha@stepsoft.com.au)
Date: Tue Aug 24 2004 - 22:27:04 EDT


Dear Managers,

Sorry for the OT

What is wrong in this awk line?

/usr/sbin/netstat -an |grep ESTA | awk
'{split($4,a,".");if(a[4]=8005)DEV++;if(a[4]=8006)PROD++;print $DEV,$PROD} '

In this line I am trying to get the total connections for ports 8005 and
8006.

Thanks

-- 
/Siva //S Santhakumar ( Santha)/
System Administrator
Stepsoft Pty Ltd
Stepsoft is the developer of Foxtrot, an Enterprise
Customer Knowledge System (CKS). Find out more
At www.stepsoft.com.au <http://www.stepsoft.com.au/>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:20 EDT