=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/expand/expand.1,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/expand/expand.1 1996/06/26 05:32:47 1.2 +++ src/usr.bin/expand/expand.1 1998/09/23 04:32:39 1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: expand.1,v 1.2 1996/06/26 05:32:47 deraadt Exp $ +.\" $OpenBSD: expand.1,v 1.3 1998/09/23 04:32:39 aaron Exp $ .\" $NetBSD: expand.1,v 1.3 1995/09/02 06:19:45 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -44,31 +44,31 @@ .Sh SYNOPSIS .Nm expand .Op Fl Ns Ar tabstop -.Op Fl Ns Ar tab1,tab2,...,tabn -.Ar +.Op Fl Ns Ar tab1 , tab2 , ... , tabn +.Ar file Op Ar ... .Nm unexpand .Op Fl a -.Ar +.Ar file Op Ar ... .Sh DESCRIPTION -.Nm Expand +.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 Expand +.Nm expand is useful for pre-processing character files (before sorting, looking at specific columns, etc.) that contain tabs. .Pp If a single .Ar tabstop -argument is given, then tabs are set +argument is given, tabs are set .Ar tabstop spaces apart instead of the default 8. If multiple tabstops are given then the tabs are set at those specific columns. .Pp -.Nm Unexpand +.Nm unexpand puts tabs back into the data from the standard input or the named files and writes the result on the standard output. .Pp @@ -80,7 +80,7 @@ By default, only leading blanks and tabs are reconverted to maximal strings of tabs. If the .Fl a -option is given, then tabs are inserted whenever they would compress the +option is given, tabs are inserted whenever they would compress the resultant file by replacing two or more characters. .El .Sh HISTORY