http://qs321.pair.com?node_id=1174896


in reply to Re: find unique lines in two files
in thread find unique lines in two files

I think this is the best answer. Better to use an existing solution than to program it yourself. You can also use a series of greps or a diff as an alternative to uniq, depending on exactly what you are trying to do. Check out this relevant link.