uniq - remove duplicate lines from a sorted file
uniq [OPTION]... [INPUT [OUTPUT]]
Discard all but one of successive identical lines from INPUT (or standard
input), writing to OUTPUT (or standard output).
prefix lines by the number of occurrences
only print duplicate lines
print all duplicate lines
avoid comparing the first N fields
ignore differences in case when comparing
avoid comparing the first N characters
use SEParator to delimit fields
only print unique lines
compare no more than N characters in lines
compare no more than N fields in lines
-N same as -f N
+N same as -s N
--help display this help and exit
output version information and exit
A field is a run of whitespace, then non-whitespace characters, unless
a SEParator is given. Fields are skipped before chars.
Written by Richard Stallman and David MacKenzie.
Report bugs to <email@example.com>.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
The full documentation for uniq is maintained as a Texinfo manual. If
the info and uniq programs are properly installed at your site, the
should give you access to the complete manual.
GNU textutils 2.0 July 2001 UNIQ(1)
[ Back ]