sort of "uniq" on column

From: Vipin sharma (vipshasun@hotmail.com)
Date: Thu Jun 26 2003 - 13:46:50 EDT


Hi Gurus

I have a report in simple text file as follows

This is 1st test file with 543563 numbers
This is 2nd test file with 345212 numbers
This is 3rd test file with 989834 numbers
This is 4th test file with 543563 numbers
This is 5th test file with NULL numbers
This is 1st test file with 743455 numbers
This is 4th test file with 345212 numbers
This is 2nd test file with 989834 numbers

Please note all the fields are separated by "|" so that I can use awk -F"|"

I want to have output like

This is 1st test file with 543563 numbers
This is 2nd test file with 345212 numbers
This is 3rd test file with 989834 numbers
this is 5th test file with NULL numbers
This is 1st test file with 743455 numbers

I mean script should check first number in first line and then compare the
number with rest of the lines if it find the duplicate number then delete
that line
Then go to 2nd line and do the same operation on rest of the line, then go
to third line and so on.

TIA
vipin

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
_______________________________________________
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:26:39 EDT