I have the following output, and each value that is separated by comma is 
a variable:

servera,serverb,109,aix4-r1,server
servera,serverb,109,aix4-r1,server
servera,serverb,109,aix4-r1,server
servera,serverb,109,aix4-r1,server
servera,serverb,109,aix4-r1,server
servera,serverb,109,hpux10,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server
servera,serverb,109,solaris2,server


I am trying to set up a counter that would actually output the data to be:

servera,serverb,109,aix4-r1,server,5
servera,serverb,109,hpux10,server,1
servera,serverb,109,solaris2,server,10

Does anyone any suggestion on how to set up a counter to count the lines 
until a different line shows up.  I already have the list sorted, so I 
just need to compare the new string to old string and if they are the same 
increase the counter, and if they are different start a new counter.


Anthony J Segelhorst
Enterprise Systems Management Team
Phone: 937-495-1876
Email: [EMAIL PROTECTED]

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________

Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
_______________________________________________________________________

Reply via email to