*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> uniq (1)              
Title
Content
Arch
Section
 

Contents


uniq(1)								       uniq(1)


NAME    [Toc]    [Back]

     uniq - report repeated lines in a file

SYNOPSIS    [Toc]    [Back]

     uniq [ -u|-d|-c ] [ -f fields ] [ -s chars	] [ input [ output ] ]

DESCRIPTION    [Toc]    [Back]

     uniq reads	the input file comparing adjacent lines.  In the normal	case,
     the second	and succeeding copies of repeated lines	are removed; the
     remainder is written on the output	file.  Input and output	should always
     be	different.  Note that repeated lines must be adjacent in order to be
     found; see	sort(1).  If the -u flag is used, just the lines that are not
     repeated in the original file are output.	The -d option specifies	that
     one copy of just the repeated lines is to be written.  The	normal mode
     output is the union of the	-u and -d mode outputs.	 The -c	option
     supersedes	-u and -d and generates	an output report in default style but
     with each line preceded by	a count	of the number of times it occurred.
     uniq processes supplementary code set characters according	to the locale
     specified in the LC_CTYPE environment variable [see LANG on environ(5)].

     The -f and	-s options specify skipping an initial portion of each line in
     the comparison:

     -f	fields
	     The first fields fields together with any blanks preceding	them
	     are ignored for each input	line.  A field is defined as a string
	     of	non-space, non-tab characters separated	by tabs	and spaces
	     from its neighbors.

     -s	chars
	     The first chars characters	(columns, in multibyte environments)
	     are ignored.  Fields are skipped before characters.

NOTES    [Toc]    [Back]

     The -n and	+m options, although still recognized, are now obsolete	and
     may not be	supported in future releases.  The -n option is	equivalent to
     -f	fields with fields set to n.  The +m option is equivalent to -s	chars
     with chars	set to m.

FILES    [Toc]    [Back]

     /usr/lib/locale/locale<b>/LC_MESSAGES/uxdfm
	  language-specific message file [See LANG on environ(5).]

SEE ALSO    [Toc]    [Back]

      
      
     comm(1), sort(1)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
uniq FreeBSD report or filter out repeated lines in a file
uniq OpenBSD report or filter out repeated lines in a file
uniq Tru64 Removes or lists repeated lines in a file
paste Tru64 Joins corresponding lines of several files or subsequent lines in one file
paste IRIX merge same lines of several files or subsequent lines of one file
paste HP-UX merge same lines of several files or subsequent lines of one file
ulimit IRIX set or report file size limit
dirname NetBSD report the parent directory name of a file pathname
dirname IRIX report the parent directory name of a file pathname
lmver IRIX report the FLEXlm version of a library or binary file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service