From 029679decb841b5e94bd5daeda5186e2a6b6d092 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Tue, 7 Mar 2000 21:11:11 +0000 Subject: Various cleanup. --- usr.bin/expand/expand.1 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'usr.bin/expand') 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 . -- cgit v1.2.3