home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUTUE.ZIP / man / cut.man < prev    next >
Text File  |  1992-07-18  |  2KB  |  53 lines

  1. NAME
  2.      cut - remove sections from each line of files
  3.  
  4. SYNOPSIS
  5.      cut {-b byte-list, --bytes=byte-list} [-n] [file...]
  6.  
  7.      cut {-c character-list, --characters=character-list} [file...]
  8.  
  9.      cut   {-f    field-list,    --fields=field-list}    [-d    delim]    [-s]
  10.      [--delimiter=delim] [--only-delimited] [file...]
  11.  
  12. DESCRIPTION
  13.      This manual page documents the GNU version of cut.  cut  prints  sections
  14.      of  each  line  of each input file, or the standard input if no files are
  15.      given.  A file name of `-' means  standard  input.   Which  sections  are
  16.      printed is selected by the options.
  17.  
  18.      OPTIONS
  19.      The byte-list, character-list, and field-list are one or more numbers  or
  20.      ranges  (two numbers separated by a dash) separated by commas.  The first
  21.      byte, character, and field are numbered  1.   Incomplete  ranges  may  be
  22.      given:  `-m'  means  `1-m';  `n-'  means  `n' through end of line or last
  23.      field.
  24.  
  25.      -b, --bytes byte-list
  26.           Print only the bytes in positions listed  in  byte-list.   Tabs  and
  27.           backspaces  are  treated  like  any  other character; they take up 1
  28.           byte.
  29.  
  30.      -c, --characters character-list
  31.           Print only characters in positions listed  in  character-list.   The
  32.           same as -b for now, but internationalization will change that.  Tabs
  33.           and backspaces are treated like any other character; they take up  1
  34.           character.
  35.  
  36.      -f, --fields field-list
  37.           Print only the fields listed in field-list.  Fields are separated by
  38.           a TAB by default.
  39.  
  40.      -d, --delimiter delim
  41.           For -f, fields are separated by the first character in delim instead
  42.           of by TAB.
  43.  
  44.      -n   Do not split multibyte characters (no-op for now).
  45.  
  46.      -s, --only-delimited
  47.           For -f, do not print lines that do not contain the  field  separator
  48.           character.
  49.  
  50.      The long-named options can be introduced with `+' as well  as  `--',  for
  51.      compatibility with previous releases.  Eventually support for `+' will be
  52.      removed, because it is incompatible with the POSIX.2 standard.
  53.