0
votes
1answer
2k views

Unique lines based on the first field

How can you find unique lines or duplicate lines in a file based on the content of the first field, or the first n characters ? The uniq command on OS X lacks the -w switch that is available under ...