summaryrefslogtreecommitdiff
path: root/usr.bin/expand
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-03-07 21:11:11 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-03-07 21:11:11 +0000
commit029679decb841b5e94bd5daeda5186e2a6b6d092 (patch)
tree37fb7cc48f9d937d7a7eecea96f13d9ccc4ba38c /usr.bin/expand
parent6dfe0d7e2d4c609e27a99bf6d2a466a13b4fe9cc (diff)
Various cleanup.
Diffstat (limited to 'usr.bin/expand')
-rw-r--r--usr.bin/expand/expand.117
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/expand/expand.1 b/usr.bin/expand/expand.1
index 2597527e8e2..45d634bc5c6 100644
--- a/usr.bin/expand/expand.1
+++ b/usr.bin/expand/expand.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: expand.1,v 1.6 1999/07/04 11:53:53 aaron Exp $
+.\" $OpenBSD: expand.1,v 1.7 2000/03/07 21:11:08 aaron Exp $
.\" $NetBSD: expand.1,v 1.3 1995/09/02 06:19:45 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -50,12 +50,12 @@
.Op Fl a
.Op Ar file Ar ...
.Sh DESCRIPTION
-.Nm
+.Nm expand
processes the named files or the standard input writing
the standard output with tabs changed into blanks.
Backspace characters are preserved into the output and decrement
the column count for tab calculations.
-.Nm
+.Nm expand
is useful for pre-processing character files
(before sorting, looking at specific columns, etc.) that
contain tabs.
@@ -72,19 +72,22 @@ specific columns.
puts tabs back into the data from the standard input or the named
files and writes the result on the standard output.
.Pp
-Option (with
+The options (for
.Nm unexpand
-only):
+only) are as follows:
.Bl -tag -width flag
.It Fl a
By default, only leading blanks and tabs
-are reconverted to maximal strings of tabs. If the
+are reconverted to maximal strings of tabs.
+If the
.Fl a
option is given, tabs are inserted whenever they would compress the
resultant file by replacing two or more characters.
.El
+.Sh SEE ALSO
+.Xr fold 1
.Sh HISTORY
The
-.Nm
+.Nm expand
command appeared in
.Bx 3.0 .