uniq(1)


NAME

   uniq - report or omit repeated lines

SYNOPSIS

   uniq [OPTION]... [INPUT [OUTPUT]]

DESCRIPTION

   Filter  adjacent matching lines from INPUT (or standard input), writing
   to OUTPUT (or standard output).

   With no options, matching lines are merged to the first occurrence.

   Mandatory arguments to long options are  mandatory  for  short  options
   too.

   -c, --count
          prefix lines by the number of occurrences

   -d, --repeated
          only print duplicate lines, one for each group

   -D     print all duplicate lines

   --all-repeated[=METHOD]
          like  -D,  but  allow  separating  groups  with  an  empty line;
          METHOD={none(default),prepend,separate}

   -f, --skip-fields=N
          avoid comparing the first N fields

   --group[=METHOD]
          show  all  items,  separating  groups  with   an   empty   line;
          METHOD={separate(default),prepend,append,both}

   -i, --ignore-case
          ignore differences in case when comparing

   -s, --skip-chars=N
          avoid comparing the first N characters

   -u, --unique
          only print unique lines

   -z, --zero-terminated
          line delimiter is NUL, not newline

   -w, --check-chars=N
          compare no more than N characters in lines

   --help display this help and exit

   --version
          output version information and exit

   A field is a run of blanks (usually spaces and/or TABs), then non-blank
   characters.  Fields are skipped before chars.

   Note: 'uniq' does not detect repeated lines unless they  are  adjacent.
   You  may want to sort the input first, or use 'sort -u' without 'uniq'.
   Also, comparisons honor the rules specified by 'LC_COLLATE'.

AUTHOR

   Written by Richard M. Stallman and David MacKenzie.

REPORTING BUGS

   GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
   Report uniq translation bugs to <http://translationproject.org/team/>

COPYRIGHT

   Copyright  2016 Free Software Foundation, Inc.   License  GPLv3+:  GNU
   GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
   This  is  free  software:  you  are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

   comm(1), join(1), sort(1)

   Full documentation at: <http://www.gnu.org/software/coreutils/uniq>
   or available locally via: info '(coreutils) uniq invocation'


More Linux Commands

manpages/XSetIconSizes.3.html
XSetIconSizes(3) - allocate icon size structure and set or r
The XAllocIconSize function allocates and returns a pointer to a XIconSize structure. Note that all fields in the XIconSize structure are initially set to zero.

manpages/autoopts-config.1.html
autoopts-config(1) script to get information about installed
autoopts-config is a tool that is used by configure to determine the compile and linker flags that should be used to compile and link programs that use autoopts

manpages/XGrabDevice.3.html
XGrabDevice(3) - grab/release the specified extension device
XGrabDevice.3 - The XGrabDevice request actively grabs control of the device and generates DeviceFocusIn and DeviceFocusOut events. Further device events are re

manpages/XML::XPath::Number.3pm.html
XML::XPath::Number(3pm) - Simple numeric values. (Man Page)
XML::XPath::Number.3pm - This class holds simple numeric values. It doesnt support -0, +/- Infinity, or NaN, as the XPath spec says it should, but Im not hurtin

manpages/mvhline_set.3ncurses.html
mvhline_set(3ncurses) - create curses borders or lines using
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a

manpages/zforce.1.html
zforce(1) - force a '.gz' extension on all gzip files.......
zforce forces a .gz extension on all gzip files so that gzip will not compress them twice. This can be useful for files with names truncated after a file transf

manpages/SDL_MixAudio.3.html
SDL_MixAudio(3) - Mix audio data (Library - Linux man page)
This function takes two audio buffers of len bytes each of the playing audio format and mixes them, performing addition, volume adjustment, and overflow clippin

manpages/Tcl_SetBooleanObj.3.html
Tcl_SetBooleanObj(3) - store/retrieve boolean value in a Tcl
These procedures are used to pass boolean values to and from Tcl as Tcl_Objs. When storing a boolean value into a Tcl_Obj, any non-zero integer value in boolVal

manpages/XtVaOpenApplication.3.html
XtVaOpenApplication(3) - initialize, open, or close a displa
The XtOpenApplication function calls XtToolkitInitialize followed by XtCreateApplicationContext, then calls XtOpenDisplay with display_string NULL and applicati

manpages/git-mailinfo.1.html
git-mailinfo(1) - Extracts patch and authorship from a singl
Reads a single e-mail message from the standard input, and writes the commit log message in &lt;msg&gt; file, and the patches in &lt;patch&gt; file. The author name, e-mail

manpages/mousedrv.4.html
mousedrv(4) - Xorg mouse input driver - Linux manual page...
mouse is an Xorg input driver for mice. The driver supports most available mouse types and interfaces, though the level of support for types of mice depends on

manpages/bstring.3.html
bstring(3) - byte string operations - Linux manual page.....
The byte string functions perform operations on strings (byte arrays) that are not necessarily null-terminated. See the individual man pages for descriptions of





We can't live, work or learn in freedom unless the software we use is free.