There is an amazing variety of little tools just perfect for a shell pipeline. Uniq is one of them. I find a new tool every once in a while.

Wade.