[0m


UNIQ(1)             UNIX Programmer's Manual		  UNIQ(1)



[1mNAME
     [0muniq - report repeated lines in a file

[1mSYNOPSIS
     uniq [0m[ [1m-udc [0m[ [1m+[0mn ] [ [1m-[0mn ] ] [ input [ output ] ]

[1mDESCRIPTION
     [0m_U_n_i_q 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.  Note that repeated lines must be adjacent in order to
     be found; see _s_o_r_t(1).  If the [1m-u [0mflag is used, just the
     lines that are not repeated in the original file are output.
     The [1m-d [0moption specifies that one copy of just the repeated
     lines is to be written.  The normal mode output is the union
     of the [1m-u [0mand [1m-d [0mmode outputs.

     The [1m-c [0moption supersedes [1m-u [0mand [1m-d [0mand generates an output
     report in default style but with each line preceded by a
     count of the number of times it occurred.

     The _n arguments specify skipping an initial portion of each
     line in the comparison:

     [1m-[0m_n      The first _n fields together with any blanks before
	     each are ignored.	A field is defined as a string of
	     non-space, non-tab characters separated by tabs and
	     spaces from its neighbors.

     [1m+[0m_n      The first _n characters are ignored.  Fields are
	     skipped before characters.

[1mSEE ALSO
     [0msort(1), comm(1)





















Printed 2/3/92	    Revision 1.2 of 19/10/88			1



[0m