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

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