<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 face=Arial>I 
wonder if you can do this in two steps:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 
face=Arial>1. Parse out the unique values from the thrid column 
into</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009>    <FONT 
size=2 face=Arial>a file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 
face=Arial>2. Run the processor on the script to print where 
the</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009>    <FONT 
size=2 face=Arial>third column matches one of the values 
identified.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 face=Arial>I 
dont know how to do this in a script.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 face=Arial>I 
would write a simple Java program to do it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=390032317-28102009>    <FONT 
size=2 face=Arial>Neil</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2>--<BR>Neil Aggarwal, (281)846-8957, <A 
href="http://www.jammconsulting.com/">http://www.JAMMConsulting.com</A><BR>CentOS 
5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU<BR>1GB 
dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> centos-bounces@centos.org 
  [mailto:centos-bounces@centos.org] <B>On Behalf Of 
  </B>Truejack<BR><B>Sent:</B> Wednesday, October 28, 2009 12:10 
  PM<BR><B>To:</B> centos@centos.org<BR><B>Subject:</B> [CentOS] Scripting help 
  please....<BR></FONT><BR></DIV>
  <DIV></DIV>Need a scripting help to sort out a list and list all the duplicate 
  lines.<BR><BR>My data looks somethings like 
  this<BR><BR>host6:dev406mum.dd.mum.test.com:22:11:11:no<BR>host7:dev258mum.dd.mum.test.com:36:17:19:no<BR>host7:dev258mum.dd.mum.test.com:36:17:19:no<BR>host17:dev258mum.dd.mum.test.com:31:17:19:no<BR>host12:dev258mum.dd.mum.test.com:41:17:19:no<BR>host2:dev258mum.dd.mum.test.com:36:17:19:no<BR>host4:dev258mum.dd.mum.test.com:41:17:19:no<BR>host4:dev258mum.dd.mum.test.com:45:17:19:no<BR>host4:dev258mum.dd.mum.test.com:36:17:19:no<BR><BR>I 
  need to sort this list and print all the lines where column 3 has a duplicate 
  entry.<BR><BR>I need to print the whole line, if a duplicate entry exists in 
  column 3.<BR><BR>I tried using a combination of "sort" and "uniq" but was not 
  successful.<BR><BR></BLOCKQUOTE></BODY></HTML>