Skip to content

Glossary: Command Line for IT: Bash and PowerShell

uniq

Also written: uniq -c

Joins repeated lines that sit next to each other, and uniq -c counts each group. So sort first, unless the input is already in order, as a time-ordered log is.

Where the book teaches it

Related terms

sortGroup-Object