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.
Glossary: Command Line for IT: Bash and PowerShell
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.