home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / doc / uniq.man < prev    next >
Text File  |  1993-06-13  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNIQ(1L)                                                 UNIQ(1L)
  5.  
  6.  
  7. NAME
  8.        uniq - remove duplicate lines from a sorted file
  9.  
  10. SYNOPSIS
  11.        uniq  [-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. DESCRIPTION
  18.        This  manual page documents the GNU version of uniq.  uniq
  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.  uniq requires sorted input because
  23.        it compares 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.        -u, --unique
  31.               Only print unique lines.
  32.  
  33.        -d, --repeated
  34.               Only print duplicate lines.
  35.  
  36.        -c, --count
  37.               Print the number of times each line occurred  along
  38.               with the line.
  39.  
  40.        -number, -f, --skip-fields=number
  41.               In  this  option, number is an integer representing
  42.               the number of fields to skip over  before  checking
  43.               for  uniqueness.   The  first  number fields, along
  44.               with any  blanks  found  before  number  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.        +number, -s, --skip-chars=number
  51.               In this option, number is an  integer  representing
  52.               the number of characters to skip over before check-
  53.               ing for uniqueness.  The first  number  characters,
  54.               along  with  any blanks found before number 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, --check-chars=number
  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.        --help Print a usage message and exit with a non-zero sta-
  78.               tus.
  79.  
  80.        --version
  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.