home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / wCNews_1.0.30.lha / contrib / newsdaily / uniq.man < prev    next >
Encoding:
Text File  |  1993-03-05  |  2.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNIQ(1L)          MISC. REFERENCE MANUAL PAGES           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.      -¢4mu¢24m, --¢4munique¢24m
  31.           Only print unique lines.
  32.  
  33.      -¢4md¢24m, --¢4mrepeated¢24m
  34.           Only print duplicate lines.
  35.  
  36.      -¢4mc¢24m, --¢4mcount¢24m
  37.           Print the number of times each line occurred along with
  38.           the line.
  39.  
  40.      -, -¢4mf¢24m, --¢4mskip¢24m-¢4mfields¢24m=¢4mnumber¢24m
  41.           In this option, ¢4mnumber¢24m is an integer  representing  the
  42.           number  of  fields  to  skip  over  before checking for
  43.           uniqueness.  The first ¢4mnumber¢24m fields,  along  with  any
  44.           blanks  found  before  ¢4mnumber¢24m  fields  is  reached, are
  45.           skipped over and not counted.  Fields are defined as  a
  46.           strings  of  non-space,  non-tab  characters,  that are
  47.           separated from each other by spaces and tabs.
  48.  
  49.      --, -¢4ms¢24m, +¢4mskip¢24m-¢4mchars¢24m=¢4mnumber¢24m
  50.           In this option, ¢4mnumber¢24m  is  an  integer  represent  the
  51.           number  of  characters to skip over before checking for
  52.           uniqueness.  The first ¢4mnumber¢24m  characters,  along  with
  53.           any  blanks  found before ¢4mnumber¢24m characters is reached,
  54.           are skipped over and not counted.  If you use both  the
  55.           field   and  character  skipping  options,  fields  are
  56.           skipped over first.
  57.  
  58.      -¢4mw¢24m, +¢4mcheck¢24m-¢4mchars¢24m=¢4mnumber¢24m
  59.           Specify the number of  characters  to  compare  in  the
  60.  
  61.  
  62.  
  63. Sun Release 4.1           Last change:                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UNIQ(1L)          MISC. REFERENCE MANUAL PAGES           UNIQ(1L)
  71.  
  72.  
  73.  
  74.           lines,  after skipping any specified fields and charac-
  75.           ters.  Normally the entire rest of the lines  are  com-
  76.           pared.
  77.  
  78.      The long-named options can be introduced with `+' as well as
  79.      `--',  for compatibility with previous releases.  Eventually
  80.      support for `+' will be removed, because it is  incompatible
  81.      with the POSIX.2 standard.
  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. Sun Release 4.1           Last change:                          2
  130.  
  131.  
  132.  
  133.