Hi.
I'm guessing that you are running into this situation:
Quote:
The input need not be sorted, but repeated input lines are detected
only if they are adjacent. If you want to discard non-adjacent
duplicate lines, perhaps you want to use `sort -u'.
-- excerpt from info coreutils uniq
|
If you do not wish to sort the file, then you will need to use
awk,
perl, etc., to read the file, mark the duplicates and then print the unique items.
If you cannot do that yourself, then I suggest you search the forums. If you still cannot find something, then I trust that someone will stop in and provide such a script.
However, if your lines
are adjacent, then perhaps it is the whitespace, in which case, we might need to normalize the whitespace -- e.g. turn all runs of space and TABS into a single space -- command
tr might help with that. It may turn out that we'd need to see a sample ... cheers, makyo