DragonFly On-Line Manual Pages

Search: Section:  


fmt(1)                 DragonFly General Commands Manual                fmt(1)

NAME

unexpand - convert spaces to tabs

SYNOPSIS

fmt [-v] [-t tabs] [-a] [--] [file ... ] unexpand converts spaces in its input files to tabs and writes the result to the standard output.

OPTIONS

-v The -v option instructs unexpand to print its version number and exit. -t tabs The -t option sets the number of spaces corresponding to each tab stop to tabs. The default is 8 spaces. -a The -a option specifies that spaces are to be replaced by tabs whenever the result is shorter. Without the -a option, spaces are only replaced by tabs in the initial white space of a line. -- The -- (double dash) option indicates the end of options.

DESCRIPTION

unexpand reads each file in turn, expanding tabs to spaces from each file in turn, and writing the result to the standard output. If no files are specified or a file is - (dash), unexpand reads from the standard input. unexpand expects its input to be Unicode characters in utf(4) form.

EXAMPLES

Convert spaces to tabs in file1 and write the results to file2: unexpand file1 >file2

SEE ALSO

expand(1) utf(4)

BUGS

None known.

SOURCES

http://pobox.com/~Alan.Watson/software.html

AUTHOR

Alan Watson (Alan.Watson@pobox.com). 1.6.0 of 97/02/25 fmt(1)

Search: Section: