uniq
Last updated
What is uniq?
uniq is a command-line utility that filters adjacent matching lines from an input file (or standard input) and writes a single copy of the matching line to the output. It's primarily used to remove duplicate lines, but it requires that the duplicates be next to each other to be effective. Options allow you to count the number of occurrences of each line, display unique lines, or display only duplicate lines.
Free resources to learn uniq
More in stage 11: Text Editors
uniq: common questions
Can I learn uniq in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain uniq in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this uniq tutorial for beginners?
It is lesson 54 of 166 in the free Shell / Bash roadmap, in stage 11, Text Editors. If you are new to Shell / Bash, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.