aboutsummaryrefslogtreecommitdiff
path: root/man/uniq.1
diff options
context:
space:
mode:
authorSoccera1 <[email protected]>2026-07-28 15:54:54 +1000
committerSoccera1 <[email protected]>2026-07-28 15:54:54 +1000
commit6a2f098e72e71437154ec00506e8e736aa8e1026 (patch)
tree63e9f5596be38558dbeb40bb566735759a3ccabb /man/uniq.1
parenta753f669c9bedfccb9f7f400da018bb487dca5d0 (diff)
downloadbnu-6a2f098e72e71437154ec00506e8e736aa8e1026.tar.gz
bnu-6a2f098e72e71437154ec00506e8e736aa8e1026.zip
Add docs
Diffstat (limited to 'man/uniq.1')
-rw-r--r--man/uniq.189
1 files changed, 89 insertions, 0 deletions
diff --git a/man/uniq.1 b/man/uniq.1
new file mode 100644
index 0000000..40da474
--- /dev/null
+++ b/man/uniq.1
@@ -0,0 +1,89 @@
+.\" Adapted for BNU from the GNU Coreutils 9.11 manual page; see doc/README.md.
+.TH UNIQ "1" "2026-07-28" "BNU 9.11" "BNU Commands"
+.SH NAME
+uniq \- report or omit repeated lines
+.SH SYNOPSIS
+.B uniq
+[\fI\,OPTION\/\fR]... [\fI\,INPUT \/\fR[\fI\,OUTPUT\/\fR]]
+.SH DESCRIPTION
+.\" This page is derived from GNU Coreutils documentation.
+This page documents BNU, an independent Bun implementation compatible with
+GNU Coreutils 9.11.
+.PP
+Filter adjacent matching lines from INPUT (or standard input),
+writing to OUTPUT (or standard output).
+.PP
+With no options, matching lines are merged to the first occurrence.
+.PP
+Mandatory arguments to long options are mandatory for short options too.
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-c'\fB\-c, \-\-count\fP\X'tty: link'
+prefix lines by the number of occurrences
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-d'\fB\-d, \-\-repeated\fP\X'tty: link'
+only print duplicate lines, one for each group
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-D'\fB\-D\fP\X'tty: link'
+print all duplicate lines
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq--all-repeated'\fB\-\-all\-repeated[=METHOD]\fP\X'tty: link'
+like \fB\-D\fR, but allow separating groups with an empty line;
+METHOD={none(default),prepend,separate}
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-f'\fB\-f, \-\-skip\-fields=\,N\fP\X'tty: link'\/\fR
+avoid comparing the first N fields
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq--group'\fB\-\-group[=METHOD]\fP\X'tty: link'
+show all items, separating groups with an empty line;
+METHOD={separate(default),prepend,append,both}
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-i'\fB\-i, \-\-ignore\-case\fP\X'tty: link'
+ignore differences in case when comparing
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-s'\fB\-s, \-\-skip\-chars=\,N\fP\X'tty: link'\/\fR
+avoid comparing the first N characters
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-u'\fB\-u, \-\-unique\fP\X'tty: link'
+only print unique lines
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-z'\fB\-z, \-\-zero\-terminated\fP\X'tty: link'
+line delimiter is NUL, not newline
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#uniq-w'\fB\-w, \-\-check\-chars=\,N\fP\X'tty: link'\/\fR
+compare no more than N characters in lines
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/uniq#uniq--help'\fB\-\-help\fP\X'tty: link'
+display this help and exit
+.TP
+\X'tty: link https://www.gnu.org/software/coreutils/uniq#uniq--version'\fB\-\-version\fP\X'tty: link'
+output version information and exit
+.PP
+A field is a run of blanks (usually spaces and/or TABs), then non\-blank
+characters. Fields are skipped before chars.
+.PP
+\&'uniq' does not detect repeated lines unless they are adjacent.
+You may want to sort the input first, or use 'sort \fB\-u\fR' without 'uniq'.
+.SH AUTHORS
+Upstream GNU Coreutils documentation authors:
+Written by Richard M. Stallman and David MacKenzie.
+.br
+Adapted for BNU; the BNU implementation is independent.
+.SH "REPORTING BUGS"
+Report BNU bugs at <https://github.com/Soccera1/bnu/issues>.
+.br
+For upstream GNU Coreutils, see <https://www.gnu.org/software/coreutils/>.
+.SH COPYRIGHT
+Copyright \(co 2026 Free Software Foundation, Inc.
+.br
+This manual page was adapted for BNU in 2026.
+License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
+.br
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+.SH "SEE ALSO"
+\fBcomm\fP(1), \fBjoin\fP(1), \fBsort\fP(1)
+.PP
+.br
+Upstream documentation <https://www.gnu.org/software/coreutils/uniq>
+.br
+BNU documentation is available locally via: info \(aq(bnu) uniq invocation\(aq