Shell / Commands

uniq

English

Overview

A command that collapses consecutive duplicate lines.

Details

A command that collapses adjacent duplicate lines, typically applied to data that's already been sorted. The -c option also counts how many times each line appeared, which makes it useful paired with sort for tallying frequencies.

More Linux terms