macOS / binaries /

uniq

/usr/bin/uniq
Report or filter out repeated lines in a file

The uniq utility reads the specified input_file comparing adjacent lines, and writes a copy of each unique input line to the output_file.

source: man