Annotation of 43BSDTahoe/man/man1/expand.1, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1980 Regents of the University of California.
                      2: .\" All rights reserved.  The Berkeley software License Agreement
                      3: .\" specifies the terms and conditions for redistribution.
                      4: .\"
                      5: .\"    @(#)expand.1    6.2 (Berkeley) 5/9/86
                      6: .\"
                      7: .TH EXPAND 1 "May 9, 1986"
                      8: .UC 4
                      9: .SH NAME
                     10: expand, unexpand \- expand tabs to spaces, and vice versa
                     11: .SH SYNOPSIS
                     12: .B expand
                     13: [
                     14: \-tabstop
                     15: ] [
                     16: \-tab1,tab2,...,tabn
                     17: ] [
                     18: file ...
                     19: ]
                     20: .br
                     21: .B unexpand
                     22: [
                     23: .B \-a
                     24: ] [
                     25: file ...
                     26: ]
                     27: .SH DESCRIPTION
                     28: .I Expand
                     29: processes the named files or the standard input writing
                     30: the standard output with tabs changed into blanks.
                     31: Backspace characters are preserved into the output and decrement
                     32: the column count for tab calculations.
                     33: .I Expand
                     34: is useful for pre-processing character files
                     35: (before sorting, looking at specific columns, etc.) that
                     36: contain tabs.
                     37: .PP
                     38: If a single
                     39: .I tabstop
                     40: argument is given, then tabs are set
                     41: .I tabstop
                     42: spaces apart instead of the default 8.
                     43: If multiple tabstops are given then the tabs are set at those
                     44: specific columns.
                     45: .PP
                     46: .I Unexpand
                     47: puts tabs back into the data from the standard input or the named
                     48: files and writes the result on the standard output.
                     49: By default, only leading blanks and tabs
                     50: are reconverted to maximal strings of tabs.  If the
                     51: .B \-a
                     52: option is given, then tabs are inserted whenever they would compress the
                     53: resultant file by replacing two or more characters.

unix.superglobalmegacorp.com

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