Originally posted by sohguanh:
[b]if it's a shellscript you're writing, you can try
parsing the middle field with regular expressions, then work on
from there ...
Do you mean by first parsing the middle field and then do the uniq
command? I wan performance and hence I tot of using juz a single
uniq command to do it. If all fails I guess I must use two commands
and pipe them together.[/b]
yes, that's what I meant, if you're just parsing a simple text
file then you can filter out all the unneccessary bits then pipe
the output to uniq ... and frankly, i don't think there's much
difference performance wise ....
I just "man uniq" .... not very helpful there .... let me know if
my idea works yah ... 
(ahhhh ... hang on ... you may want to tinker around with -f or -s
....
)