Add unexpand(1)

This commit is contained in:
Tuukka Kataja
2014-06-09 16:52:20 +01:00
committed by sin
parent 7f7e7dcbb9
commit 8b87d0098a
7 changed files with 170 additions and 4 deletions

25
unexpand.1 Normal file
View File

@@ -0,0 +1,25 @@
.TH EXPAND 1 sbase\-VERSION
.SH NAME
unexpand \- convert blanks to tabs
.SH SYNOPSIS
.B unexpand
.RB [ \-a ]
.RB [ \-t
.IR n ]
.RI [ file ...]
.SH DESCRIPTION
unexpand processes the named files or the standard input, writing the
standard output with consecutive blanks (spaces and tabs) converted
into tabs. Backspace characters are preserved into the output and
decrement the column count for tab calculations.
.SH OPTIONS
.TP
.BI \-a
convert blanks to tabs everywhere, not just at the start of lines
.TP
.BI \-t " n"
set tab size to
.I n
spaces (default: 8)
.SH SEE ALSO
.IR expand (1)