2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt UNEXPAND 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 23:20:29 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm unexpand
|
2015-02-08 20:24:22 +00:00
|
|
|
.Nd unexpand spaces to tabs
|
2015-01-30 23:20:29 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl a
|
2015-02-08 20:24:22 +00:00
|
|
|
.Op Fl t Ar tablist
|
2015-01-30 23:20:29 +00:00
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-02-08 20:24:22 +00:00
|
|
|
converts spaces to tabs 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.
|
2015-01-30 23:20:29 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
2015-02-08 20:24:22 +00:00
|
|
|
Convert spaces to tabs everywhere, not just at the start of lines.
|
|
|
|
.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".
|
2015-01-30 23:20:29 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr expand 1
|
2015-02-08 20:24:22 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2015-02-08 20:24:22 +00:00
|
|
|
specification.
|