The easiest way to do anything like that is to load each record into a hash, with the unique attribute as the hash key. Then just dump the hash back to a file again and you're done. We'll need more info to be more specific. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
In the *x world or with, eg, cygwin, it's easy to
[tt] `sort -u -o $file $file`;[/tt]
rather than reinvent a wheel. "As soon as we started programming, we found to our surprise that it wasn't as
easy to get programs right as we had thought. Debugging had to be discovered.
I can remember the exact instant when I realized that a large part of my life
from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.