GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
UNEXPAND(1) User Commands UNEXPAND(1)

unexpand - convert spaces to tabs

unexpand [-a] [-t tablist | -tablist] [file ...]

The unexpand utility converts multiple space characters found at the beginning of each line of its input files (or of standard input if no file argument is present) to tabulators if appropriate and writes the result to standard output. The input is ordered in columns according to the width of characters; a backspace character causes the column to be decremented. By default, a tabulator stop is assumed at every eight positions.

The following options alter the behavior of unexpand:

Causes conversion also to apply to sequences of two or more spaces found after the first character on each line other than a space.
Specify the positions of tabulator stops. If tablist is a single number, a tabulator stop is assumed at every tablist positions. If tablist is a list of numbers in strictly ascending order separated by commas or blanks, a tabulator stop is assumed at each numbered position. For column positions beyond the last tabulator stop, each tabulator character is converted to a single space character. Implies -a. This option was introduced by POSIX.2.

See locale(7).
Specifies the mapping of bytes to characters and the width of characters.

expand(1), tabs(1)

12/6/04 Heirloom Toolchest

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.