unique

Parameters:
Name Type Required Default Hint
input string false The piped input to be checked.
count string false false Precede each line with the number of times that item appeared

Command Usage

Search through string input and filter duplicate lines. Only unique results will be returned.

cat names.txt | unique
You can also get results with the occurrence count preceding each item
cat names.txt | unique --count