


UNIQ(1L)                                                 UNIQ(1L)


NNAAMMEE
       uniq - remove duplicate lines from a sorted file

SSYYNNOOPPSSIISS
       uunniiqq  [-cdu]  [-f  skip-fields] [-s skip-chars] [-w check-
       chars]    [-#skip-fields]     [+#skip-chars]     [--count]
       [--repeated]     [--unique]    [--skip-fields=skip-fields]
       [--skip-chars=skip-chars]      [--check-chars=check-chars]
       [infile] [outfile]

DDEESSCCRRIIPPTTIIOONN
       This  manual page documents the GNU version of uunniiqq.  uunniiqq
       prints the unique lines in a sorted file,  discarding  all
       but  one  of  a  run of matching lines.  It can optionally
       show only lines that appear exactly once,  or  lines  that
       appear more than once.  uunniiqq requires sorted input because
       it compares only consecutive lines.

       If the output file is not specified, uunniiqq  writes  to  the
       standard  output.   If the input file is not specified, it
       reads from the standard input.

   OOPPTTIIOONNSS
       _-_u_, _-_-_u_n_i_q_u_e
              Only print unique lines.

       _-_d_, _-_-_r_e_p_e_a_t_e_d
              Only print duplicate lines.

       _-_c_, _-_-_c_o_u_n_t
              Print the number of times each line occurred  along
              with the line.

       _-_, _-_f_, _-_-_s_k_i_p_-_f_i_e_l_d_s_=_n_u_m_b_e_r
              In  this  option, _n_u_m_b_e_r is an integer representing
              the number of fields to skip over  before  checking
              for  uniqueness.   The  first  _n_u_m_b_e_r fields, along
              with any  blanks  found  before  _n_u_m_b_e_r  fields  is
              reached,  are skipped over and not counted.  Fields
              are defined as  a  strings  of  non-space,  non-tab
              characters,  that  are separated from each other by
              spaces and tabs.

       _-_-_, _-_s_, _+_s_k_i_p_-_c_h_a_r_s_=_n_u_m_b_e_r
              In this option, _n_u_m_b_e_r is an integer represent  the
              number  of  characters to skip over before checking
              for uniqueness.  The first _n_u_m_b_e_r characters, along
              with  any  blanks found before _n_u_m_b_e_r characters is
              reached, are skipped over and not counted.  If  you
              use  both the field and character skipping options,
              fields are skipped over first.

       _-_w_, _+_c_h_e_c_k_-_c_h_a_r_s_=_n_u_m_b_e_r
              Specify the number of characters to compare in  the



                                                                1





UNIQ(1L)                                                 UNIQ(1L)


              lines,  after  skipping  any  specified  fields and
              characters.  Normally the entire rest of the  lines
              are compared.

       The  long-named options can be introduced with `+' as well
       as `--', for compatibility with previous releases.   Even-
       tually  support  for  `+'  will  be removed, because it is
       incompatible with the POSIX.2 standard.

















































                                                                2


