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

  1. NAME
  2.      expand - convert tabs to spaces
  3.  
  4. SYNOPSIS
  5.      expand     [-tab1[,tab2[,...]]]     [-t      tab1[,tab2[,...]]]      [-i]
  6.      [--tabs=tab1[,tab2[,...]]] [--initial] [file...]
  7.  
  8. DESCRIPTION
  9.      This manual page documents the GNU version of expand.  expand writes  the
  10.      contents  of  each given file, or the standard input if none are given or
  11.      when a file named  `-'  is  given,  to  the  standard  output,  with  tab
  12.      characters  converted  to  the appropriate number of spaces.  By default,
  13.      expand converts all tabs to spaces.  It preserves backspace characters in
  14.      the  output;  they  decrement the column count for tab calculations.  The
  15.      default action is equivalent to -8 (set tabs every 8 columns).
  16.  
  17.      OPTIONS
  18.  
  19.      -, -t, --tabs tab1[,tab2[,...]]
  20.           If only one tab stop is  given,  set  the  tabs  tab1  spaces  apart
  21.           instead  of the default 8.  Otherwise, set the tabs at columns tab1,
  22.           tab2, etc. (numbered  from  0)  and  replace  any  tabs  beyond  the
  23.           tabstops  given  with  single spaces.  If the tabstops are specified
  24.           with the -t or --tabs option, they can be  separated  by  blanks  as
  25.           well as by commas.
  26.  
  27.      -i, --initial
  28.           Only convert initial tabs (those that precede all non space  or  tab
  29.           characters) on each line to spaces.
  30.  
  31.      The long-named options can be introduced with `+' as well  as  `--',  for
  32.      compatibility with previous releases.  Eventually support for `+' will be
  33.      removed, because it is incompatible with the POSIX.2 standard.
  34.