A simple way to filter duplicate lines from a list, à la uniq.