home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260utilsdoc.lha / gnu / man / man1 / uniq.1 < prev    next >
Encoding:
Text File  |  1994-07-26  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNIQ(1L)          Misc. Reference Manual Pages           UNIQ(1L)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      uniq - remove duplicate lines from a sorted file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      uuuunnnniiiiqqqq [-cdu] [-f skip-fields] [-s  skip-chars]  [ - w  check-
  13.      chars] [-#skip-fields] [+#skip-chars] [--count] [--repeated]
  14.      [--unique] [--skip-fields=skip-fields] [- - skip-chars=skip-
  15.      chars]  [ - - check-chars=check-chars]  [--help] [--version]
  16.      [infile] [outfile]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      This manual page documents the GNU version  of  uuuunnnniiiiqqqq.   uuuunnnniiiiqqqq
  20.      prints the unique lines in a sorted file, discarding all but
  21.      one of a run of matching lines.  It can optionally show only
  22.      lines  that  appear  exactly once, or lines that appear more
  23.      than once.  uuuunnnniiiiqqqq requires sorted input because  it  compares
  24.      only consecutive lines.
  25.  
  26.      If the output file is not  specified,  uuuunnnniiiiqqqq  writes  to  the
  27.      standard  output.   If  the  input file is not specified, it
  28.      reads from the standard input.
  29.  
  30.   OOOOPPPPTTTTIIIIOOOONNNNSSSS
  31.      -_u, --_u_n_i_q_u_e
  32.           Only print unique lines.
  33.  
  34.      -_d, --_r_e_p_e_a_t_e_d
  35.           Only print duplicate lines.
  36.  
  37.      -_c, --_c_o_u_n_t
  38.           Print the number of times each line occurred along with
  39.           the line.
  40.  
  41.      -_n_u_m_b_e_r, -_f, --_s_k_i_p-_f_i_e_l_d_s=_n_u_m_b_e_r
  42.           In this option, _n_u_m_b_e_r is an integer  representing  the
  43.           number  of  fields  to  skip  over  before checking for
  44.           uniqueness.  The first _n_u_m_b_e_r fields,  along  with  any
  45.           blanks  found  before  _n_u_m_b_e_r  fields  is  reached, are
  46.           skipped over and not counted.  Fields are defined as  a
  47.           strings  of  non-space,  non-tab  characters,  that are
  48.           separated from each other by 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  the
  52.           number  of  characters to skip over before checking for
  53.           uniqueness.  The first _n_u_m_b_e_r  characters,  along  with
  54.           any  blanks  found before _n_u_m_b_e_r characters is reached,
  55.           are skipped over and not counted.  If you use both  the
  56.           field   and  character  skipping  options,  fields  are
  57.           skipped over first.
  58.  
  59.      -_w, --_c_h_e_c_k-_c_h_a_r_s=_n_u_m_b_e_r
  60.  
  61.  
  62.  
  63. FSF              Last change: GNU Text Utilities                1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UNIQ(1L)          Misc. Reference Manual Pages           UNIQ(1L)
  71.  
  72.  
  73.  
  74.           Specify the number of  characters  to  compare  in  the
  75.           lines,  after skipping any specified fields and charac-
  76.           ters.  Normally the entire rest of the lines  are  com-
  77.           pared.
  78.  
  79.      --_h_e_l_p
  80.           Print a usage message and exit with a non-zero status.
  81.  
  82.      --_v_e_r_s_i_o_n
  83.           Print version information on standard output then exit.
  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. FSF              Last change: GNU Text Utilities                2
  130.  
  131.  
  132.  
  133.