in reply to Re: Better "uniq" idiom?
in thread Better "uniq" idiom?

True, but it has the downside of doing a sort first, which could kill you on a long file which has many repeated lines...

If the file is mostly unique, your way wins hands down, no question.

But I usually wind up "uniq"ing on a field, so I usually see only about 10-100 lines per file.

It would be interesting to benchmark.
--
Mike