uniq(1) plan9 man page | unix.com

Man Page: uniq

Operating Environment: plan9

Section: 1

UNIQ(1) 						      General Commands Manual							   UNIQ(1)

NAME
uniq - report repeated lines in a file
SYNOPSIS
uniq [ -udc [ +-num ] ] [ file ]
DESCRIPTION
Uniq copies the input file, or the standard input, to the standard output, comparing adjacent lines. In the normal case, the second and succeeding copies of repeated lines are removed. Repeated lines must be adjacent in order to be found. -u Print unique lines. -d Print (one copy of) duplicated lines. -c Prefix a repetition count and a tab to each output line. Implies -u and -d. -num The first num fields together with any blanks before each are ignored. A field is defined as a string of non-space, non-tab charac- ters separated by tabs and spaces from its neighbors. +num The first num characters are ignored. Fields are skipped before characters.
SOURCE
/sys/src/cmd/uniq.c
SEE ALSO
sort(1)
BUGS
Field selection and comparison should be compatible with sort(1). UNIQ(1)
Related Man Pages
uniq(1) - linux
uniq(1) - opendarwin
uniq(1) - netbsd
uniq(1) - osx
uniq(1) - xfree86
Similar Topics in the Unix Linux Community
Concatenating column values with unique id into single row
Getting non unique lines from concatenated files
[uniq + awk?] How to remove duplicate blocks of lines in files?
Fetching record based on Uniq Key from huge file.
Unique entries in multiple files