UNIQ(1)
π uniq β the manual, but make it make sense π¦
okay bestie so you've stumbled into the UNIQ(1) page and honestly? you're gonna slay this. it's a General Commands Manual situation, it's iconic, it's giving "small tool, big personality." let's go β¨
πΈ NAME πΈ
uniq β literally just reports repeated lines, or omits them. that's the whole gig. main character energy tbh π
π SYNOPSIS π
uniq [OPTION]... [INPUT [OUTPUT]]
that's it. that's the vibe check. options first if you want em, then the input, then the output. π«Ά
π DESCRIPTION π
Report or omit repeated lines. periodt. that's the description. she said what she said. π₯
β¨ OPTIONS β¨
okay this is the part where you take notes, bestie, because these flags are the whole personality π
-D,--all-repeated[=<delimit-method>]β print all the duplicate lines. delimiting happens with blank lines. the default isnonengl π«Ά the possible values are literally:noneprependseparate
--group[=<group-method>]β shows you all the items, and separates groups with an empty line. default isseparateπ the possible values, bestie:separateprependappendboth
-w,--check-chars <N>β compare no more than N characters in lines. so like, only the first N chars get compared, okurrr β-c,--countβ prefix lines by the number of occurrences. she's counting her blessings fr fr π-i,--ignore-caseβ ignore differences in case when comparing. soHelloandhelloare the same girlie apparently π-d,--repeatedβ only print duplicate lines. we only want the ones that showed up more than once π-s,--skip-chars <N>β avoid comparing the first N characters. she's skipping the intro, we're here for the chorus π-f,--skip-fields <N>β avoid comparing the first N fields. same energy, but with fields π-u,--uniqueβ only print unique lines. no duplicates allowed in this house π-z,--zero-terminatedβ end lines with a0byte, not newline. chaotic but valid π-h,--helpβ Print help. your lil "what do I do" button π§-V,--versionβ Print version. the "who even are you" button π
π¦ EXTRA π¦
so what does she actually do? she filters adjacent matching lines from INPUT (or standard input), and writes them out to OUTPUT (or standard output). simple, clean, effective π
β οΈ okay this is the important one, bestie βuniqdoes not detect repeated lines unless they are adjacent. like, they have to be right next to each other or she simply won't see them. no cap. you might want tosortthe input first, or just usesort -uwithoutuniqat all. iykyk π
β VERSION β
v(uutils coreutils) 0.12.0 β yeah that's the version, she's fancy πΈ
and that's the whole page bestie, you ate that π
β¨ this was UNIQ(1) from the General Commands Manual, dated 2026-09-17 β go forth and deduplicate, you gorgeous genius π«Άπ
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms