summaryrefslogtreecommitdiff
path: root/util/sbase/unexpand.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/unexpand.1')
-rw-r--r--util/sbase/unexpand.141
1 files changed, 41 insertions, 0 deletions
diff --git a/util/sbase/unexpand.1 b/util/sbase/unexpand.1
new file mode 100644
index 00000000..1637c090
--- /dev/null
+++ b/util/sbase/unexpand.1
@@ -0,0 +1,41 @@
+.Dd October 8, 2015
+.Dt UNEXPAND 1
+.Os sbase
+.Sh NAME
+.Nm unexpand
+.Nd unexpand spaces to tabs
+.Sh SYNOPSIS
+.Nm
+.Op Fl a
+.Op Fl t Ar tablist
+.Op Ar file ...
+.Sh DESCRIPTION
+.Nm
+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.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Fl a
+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".
+.El
+.Sh SEE ALSO
+.Xr expand 1
+.Sh STANDARDS
+POSIX.1-2013.