sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

unexpand.1 (821B)


      1 .Dd 2015-10-08
      2 .Dt UNEXPAND 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm unexpand
      6 .Nd unexpand spaces to tabs
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl a
     10 .Op Fl t Ar tablist
     11 .Op Ar file ...
     12 .Sh DESCRIPTION
     13 .Nm
     14 converts spaces to tabs in each
     15 .Ar file
     16 as specified in
     17 .Ar tablist .
     18 If no file is given,
     19 .Nm
     20 reads from stdin.
     21 .Pp
     22 Backspace characters are preserved and decrement the column count
     23 for tab calculations.
     24 .Sh OPTIONS
     25 .Bl -tag -width Ds
     26 .It Fl a
     27 Convert spaces to tabs everywhere, not just at the start of lines.
     28 .It Fl t Ar tablist
     29 Specify tab size or tabstops.
     30 .Ar tablist
     31 is a list of one (in the former case) or multiple (in the latter case)
     32 strictly positive integers separated by ' ' or ','.
     33 .Pp
     34 The default
     35 .Ar tablist
     36 is "8".
     37 .El
     38 .Sh SEE ALSO
     39 .Xr expand 1
     40 .Sh STANDARDS
     41 The
     42 .Nm
     43 utility is compliant with the
     44 .St -p1003.1-2013
     45 specification.