home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat1 / uniq.0 < prev    next >
Text File  |  1993-12-07  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNIQ(1L)                                                 UNIQ(1L)
  5.  
  6.  
  7. NNAAMMEE
  8.        uniq - remove duplicate lines from a sorted file
  9.  
  10. SSYYNNOOPPSSIISS
  11.        uunniiqq  [-cdu]  [-f  skip-fields] [-s skip-chars] [-w check-
  12.        chars]    [-#skip-fields]     [+#skip-chars]     [--count]
  13.        [--repeated]     [--unique]    [--skip-fields=skip-fields]
  14.        [--skip-chars=skip-chars]      [--check-chars=check-chars]
  15.        [--help] [--version] [infile] [outfile]
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.        This  manual page documents the GNU version of uunniiqq.  uunniiqq
  19.        prints the unique lines in a sorted file,  discarding  all
  20.        but  one  of  a  run of matching lines.  It can optionally
  21.        show only lines that appear exactly once,  or  lines  that
  22.        appear more than once.  uunniiqq requires sorted input because
  23.        it compares only consecutive lines.
  24.  
  25.        If the output file is not specified, uunniiqq  writes  to  the
  26.        standard  output.   If the input file is not specified, it
  27.        reads from the standard input.
  28.  
  29.    OOPPTTIIOONNSS
  30.        _-_u_, _-_-_u_n_i_q_u_e
  31.               Only print unique lines.
  32.  
  33.        _-_d_, _-_-_r_e_p_e_a_t_e_d
  34.               Only print duplicate lines.
  35.  
  36.        _-_c_, _-_-_c_o_u_n_t
  37.               Print the number of times each line occurred  along
  38.               with the line.
  39.  
  40.        _-_n_u_m_b_e_r_, _-_f_, _-_-_s_k_i_p_-_f_i_e_l_d_s_=_n_u_m_b_e_r
  41.               In  this  option, _n_u_m_b_e_r is an integer representing
  42.               the number of fields to skip over  before  checking
  43.               for  uniqueness.   The  first  _n_u_m_b_e_r fields, along
  44.               with any  blanks  found  before  _n_u_m_b_e_r  fields  is
  45.               reached,  are skipped over and not counted.  Fields
  46.               are defined as  a  strings  of  non-space,  non-tab
  47.               characters,  that  are separated from each other by
  48.               spaces and tabs.
  49.  
  50.        _+_n_u_m_b_e_r_, _-_s_, _-_-_s_k_i_p_-_c_h_a_r_s_=_n_u_m_b_e_r
  51.               In this option, _n_u_m_b_e_r is an  integer  representing
  52.               the number of characters to skip over before check-
  53.               ing for uniqueness.  The first  _n_u_m_b_e_r  characters,
  54.               along  with  any blanks found before _n_u_m_b_e_r charac-
  55.               ters is reached, are skipped over and not  counted.
  56.               If  you  use  both the field and character skipping
  57.               options, fields are skipped over first.
  58.  
  59.        _-_w_, _-_-_c_h_e_c_k_-_c_h_a_r_s_=_n_u_m_b_e_r
  60.               Specify the number of characters to compare in  the
  61.  
  62.  
  63.  
  64. FSF                     GNU Text Utilities                      1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UNIQ(1L)                                                 UNIQ(1L)
  71.  
  72.  
  73.               lines,  after  skipping  any  specified  fields and
  74.               characters.  Normally the entire rest of the  lines
  75.               are compared.
  76.  
  77.        _-_-_h_e_l_p Print a usage message and exit with a non-zero sta-
  78.               tus.
  79.  
  80.        _-_-_v_e_r_s_i_o_n
  81.               Print version information on  standard  error  then
  82.               exit.
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. FSF                     GNU Text Utilities                      2
  131.  
  132.  
  133.