All apps/uniq

uniq

uniq

Report or omit repeated adjacent lines.

Runs as uniq|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 9 fields

Report or omit repeated adjacent lines in a file. Input must be sorted for global de-duplication.

Opens the form; the finished command lands at your prompt, unrun
otty gui uniq
Filter repeated linesExample values, fixed in this page — nothing here reaches a terminal
Basic
Input file
file
Prefix with count set by task
-c
Ignore case
-i
TasksEach one presets the form for one job
Count occurrences
inputcountignore_case
Show duplicates only
inputrepeatedignore_case
ParametersOnly these flags are editable in the form
Input file
Reads standard input when empty.
path · positional 0
Output file
Writes to standard output when empty.
path · positional 1
Prefix with count
boolean
-c--count
Only duplicated lines
boolean
-d--repeated
Only unique lines
boolean
-u--unique
Ignore case
boolean
-i--ignore-case
Skip first N fields
integer
-f--skip-fields
Skip first N characters
integer
-s--skip-chars
Compare at most N characters
integer
-w--check-chars
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed uniq against its version. A form that does not match your version is not offered.