icon Top 9 categories map      RocketAware >

expand(1)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others



EXPAND(1)                  OpenBSD Reference Manual                  EXPAND(1)

NAME
     expand, unexpand - expand tabs to spaces, and vice versa



SYNOPSIS
     expand [-tabstop] [-tab1, tab2, ...] [file ...]
     unexpand [-a] [file ...]

DESCRIPTION
     expand processes the named files or the standard input writing the stan-
     dard output with tabs changed into blanks.  Backspace characters are pre-
     served into the output and decrement the column count for tab calcula-
     tions.  expand is useful for pre-processing character files (before sort-
     ing, looking at specific columns, etc.) that contain tabs.

     If a single tabstop argument is given, tabs are set tabstop spaces apart
     instead of the default 8.  If multiple tabstops are given then the tabs
     are set at those specific columns.

     unexpand puts tabs back into the data from the standard input or the
     named files and writes the result on the standard output.

     Option (with unexpand only):

     -a    By default, only leading blanks and tabs are reconverted to maximal
           strings of tabs.  If the -a option is given, tabs are inserted
           whenever they would compress the resultant file by replacing two or
           more characters.

HISTORY
     The expand command appeared in 3.0BSD.

OpenBSD 2.6                      June 9, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for expand(1)
OpenBSD sources for expand(1)


[Overview Topics]

Up to: File filtering and processing - Methods of filtering and processing files. (character translation, comparison, search, sort, word counts, etc.)


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > expand.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments