...

/

Filtering Repeated Lines Out

Filtering Repeated Lines Out

Review different ways to search for repeated lines in a text or a file.

We'll cover the following...

uniq

Definition:

uniq command in bash is a command line utility to filter and view multiple repeated lines.

This command works on adjacent comparison lines so it is often combined with the sort command.

It can be used to:

  • remove duplicates.
  • show only repeated lines.
  • show a count of repeated occurrences.
  • comparing
...