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

  1.  
  2.  
  3.  
  4. CUT(1L)                                                   CUT(1L)
  5.  
  6.  
  7. NAME
  8.        cut - remove sections from each line of files
  9.  
  10. SYNOPSIS
  11.        cut   {-b   byte-list,  --bytes=byte-list}  [-n]  [--help]
  12.        [--version] [file...]
  13.  
  14.        cut   {-c   character-list,   --characters=character-list}
  15.        [--help] [--version] [file...]
  16.  
  17.        cut  {-f  field-list, --fields=field-list} [-d delim] [-s]
  18.        [--delimiter=delim]  [--only-delimited]  [--help]  [--ver-
  19.        sion] [file...]
  20.  
  21. DESCRIPTION
  22.        This  manual  page  documents the GNU version of cut.  cut
  23.        prints sections of each line of each input  file,  or  the
  24.        standard  input if no files are given.  A file name of `-'
  25.        means standard  input.   Which  sections  are  printed  is
  26.        selected by the options.
  27.  
  28.    OPTIONS
  29.        The  byte-list,  character-list, and field-list are one or
  30.        more numbers or ranges (two numbers separated by  a  dash)
  31.        separated by commas.  The first byte, character, and field
  32.        are numbered 1.  Incomplete  ranges  may  be  given:  `-m'
  33.        means  `1-m';  `n-'  means `n' through end of line or last
  34.        field.
  35.  
  36.        -b, --bytes byte-list
  37.               Print only the bytes in positions listed  in  byte-
  38.               list.   Tabs  and  backspaces  are treated like any
  39.               other character; they take up 1 byte.
  40.  
  41.        -c, --characters character-list
  42.               Print only characters in positions listed in  char-
  43.               acter-list.   The  same as -b for now, but interna-
  44.               tionalization   will   change   that.    Tabs   and
  45.               backspaces  are  treated  like any other character;
  46.               they take up 1 character.
  47.  
  48.        -f, --fields field-list
  49.               Print only the fields listed in field-list.  Fields
  50.               are separated by a TAB by default.
  51.  
  52.        -d, --delimiter delim
  53.               For -f, fields are separated by the first character
  54.               in delim instead of by TAB.
  55.  
  56.        -n     Do not split multibyte characters (no-op for  now).
  57.  
  58.        -s, --only-delimited
  59.               For  -f, do not print lines that do not contain the
  60.               field separator character.
  61.  
  62.  
  63.  
  64. FSF                     GNU Text Utilities                      1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CUT(1L)                                                   CUT(1L)
  71.  
  72.  
  73.        --help Print a usage message and exit with a non-zero sta-
  74.               tus.
  75.  
  76.        --version
  77.               Print  version  information  on standard error then
  78.               exit.
  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.  
  130. FSF                     GNU Text Utilities                      2
  131.  
  132.  
  133.