Uniq

Uniq is a filter command that gets unique lines

But what does it do?
Purpose is to eliminate duplicated lines

Hence Unique

It only removes duplicates touching each other by default


 * hello
 * 100
 * 100
 * 100
 * hello

Goes to


 * hello
 * 100
 * hello

Options

 * no options
 * remove all duplicate lines
 * -u option display all unique lines
 * if you have a 100 line file, 99 zeroes and one o then it will diplay the o
 * -d option
 * display each duplicated line exactly once
 * Don't display any unique lines
 * Opposite of -u
 * -c option
 * displays one of each line with a count
 * Like no options except a count is added to each line