2015-10-08 11:15:08 -04:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt EXPAND 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-25 08:31:02 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm expand
|
|
|
|
.Nd expand tabs to spaces
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 15:17:58 -05:00
|
|
|
.Nm
|
2015-01-25 08:31:02 -05:00
|
|
|
.Op Fl i
|
|
|
|
.Op Fl t Ar tablist
|
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
converts tabs to spaces in each
|
|
|
|
.Ar file
|
|
|
|
as specified in
|
|
|
|
.Ar tablist .
|
|
|
|
If no file is given,
|
|
|
|
.Nm
|
|
|
|
reads from stdin.
|
|
|
|
.Pp
|
|
|
|
Backspace characters are preserved and decrement the column count
|
|
|
|
for tab calculations.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl i
|
|
|
|
Only expand tabs at the beginning of lines, i.e. expand each
|
|
|
|
line until a character different from '\et' and ' ' is reached.
|
|
|
|
.It Fl t Ar tablist
|
|
|
|
Specify tab size or tabstops.
|
|
|
|
.Ar tablist
|
|
|
|
is a list of one (in the former case) or multiple (in the latter case)
|
|
|
|
strictly positive integers separated by ' ' or ','.
|
|
|
|
.Pp
|
|
|
|
The default
|
|
|
|
.Ar tablist
|
|
|
|
is "8".
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2015-01-31 08:43:27 -05:00
|
|
|
.Xr fold 1 ,
|
|
|
|
.Xr unexpand 1
|
2015-01-25 08:31:02 -05:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 12:22:48 -04:00
|
|
|
.St -p1003.1-2013
|
2015-01-25 08:31:02 -05:00
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Op Fl i
|
2015-03-12 19:37:37 -04:00
|
|
|
flag is an extension to that specification.
|