home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / man / manpages.zoo / uniq.1 < prev    next >
Encoding:
Text File  |  1991-11-11  |  2.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNIQ(1L)                                                 UNIQ(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      uniq - remove duplicate lines from a sorted file
  10.  
  11. SYNOPSIS
  12.      uniq [-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] [infile] [outfile]
  16.  
  17. DESCRIPTION
  18.      This manual page documents the GNU version of uniq.  uniq
  19.      prints the unique lines in a sorted file, discarding all but
  20.      one of a run of matching lines.  It can optionally show only
  21.      lines that appear exactly once, or lines that appear more
  22.      than once.  uniq requires sorted input because it compares
  23.      only consecutive lines.
  24.  
  25.      If the output file is not specified, uniq writes to the
  26.      standard output.  If the input file is not specified, it
  27.      reads from the standard input.
  28.  
  29.      OPTIONS
  30.  
  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.      -, -_✓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.      +, -_✓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 represent 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. Page 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UNIQ(1L)                                                 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.  
  80.  
  81.  
  82.  
  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. Page 2
  130.  
  131.  
  132.  
  133.