Annotation of 43BSDReno/usr.bin/expand/expand.1, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1980, 1990 The Regents of the University of California.
                      2: .\" All rights reserved.
                      3: .\"
                      4: .\" Redistribution and use in source and binary forms are permitted provided
                      5: .\" that: (1) source distributions retain this entire copyright notice and
                      6: .\" comment, and (2) distributions including binaries display the following
                      7: .\" acknowledgement:  ``This product includes software developed by the
                      8: .\" University of California, Berkeley and its contributors'' in the
                      9: .\" documentation or other materials provided with the distribution and in
                     10: .\" all advertising materials mentioning features or use of this software.
                     11: .\" Neither the name of the University nor the names of its contributors may
                     12: .\" be used to endorse or promote products derived from this software without
                     13: .\" specific prior written permission.
                     14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     17: .\"
                     18: .\"     @(#)expand.1   6.5 (Berkeley) 7/24/90
                     19: .\"
                     20: .Dd July 24, 1990
                     21: .Dt EXPAND 1
                     22: .Os BSD 4
                     23: .Sh NAME
                     24: .Nm expand ,
                     25: .Nm unexpand
                     26: .Nd expand tabs to spaces, and vice versa
                     27: .Sh SYNOPSIS
                     28: .Nm expand
                     29: .Oo
                     30: .Op Fl Ar tabstop
                     31: .Op Fl Ar tab1,tab2,...,tabn
                     32: .Oo
                     33: .Ar
                     34: .Nm unexpand
                     35: .Op Fl a
                     36: .Ar
                     37: .Sh DESCRIPTION
                     38: .Nm Expand
                     39: processes the named files or the standard input writing
                     40: the standard output with tabs changed into blanks.
                     41: Backspace characters are preserved into the output and decrement
                     42: the column count for tab calculations.
                     43: .Nm Expand
                     44: is useful for pre-processing character files
                     45: (before sorting, looking at specific columns, etc.) that
                     46: contain tabs.
                     47: .Pp
                     48: If a single
                     49: .Ar tabstop
                     50: argument is given, then tabs are set
                     51: .Ar tabstop
                     52: spaces apart instead of the default 8.
                     53: If multiple tabstops are given then the tabs are set at those
                     54: specific columns.
                     55: .Pp
                     56: .Nm Unexpand
                     57: puts tabs back into the data from the standard input or the named
                     58: files and writes the result on the standard output.
                     59: .Pp
                     60: Option (with
                     61: .Nm unexpand
                     62: only):
                     63: .Tw Ds
                     64: .Tp Fl a
                     65: By default, only leading blanks and tabs
                     66: are reconverted to maximal strings of tabs.  If the
                     67: .Fl a
                     68: option is given, then tabs are inserted whenever they would compress the
                     69: resultant file by replacing two or more characters.
                     70: .Tp
                     71: .Sh HISTORY
                     72: .Nm Expand
                     73: appeared in 3 BSD.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.