unexpand: Convert spaces to tabs

Convert spaces to tabs, write the contents of each given FILE,
or standard input if none are given or for a FILE of `-?, to standard output.
Strings of two or more space or tab characters are converted to as many tabs
as possible followed by as many spaces as are needed.
Syntax
unexpand [options]... [file]...

Options

-TAB1[,TAB2]...
-t TAB1[,TAB2]...
--tabs=TAB1[,TAB2]...
If only one tab stop is given, set the tabs TAB1 spaces apart
instead of the default 8. Otherwise, set the tabs at columns
TAB1, TAB2, ... (numbered from 0), and leave spaces and tabs
beyond the tabstops given unchanged. If the tabstops are specified
with the `-t? or `--tabs? option, they can be separated by blanks
as well as by commas. This option implies the `-a? option.

-a
--all
Convert all strings of two or more spaces or tabs, not just initial
ones, to tabs.
By default, `unexpand? converts only initial spaces and tabs (those
that precede all non space or tab characters) on each line.
It preserves backspace characters in the output; they decrement the column count
for tab calculations.
By default, tabs are set at every 8th column.
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (6 + 6) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 18.06.2009
Views: 1803
Item date: 01.07.2009
Views: 599
Item date: 22.08.2009
Views: 1810
Item date: 10.04.2009
Views: 600
Item date: 07.03.2009
Views: 653
Item date: 27.09.2009
Views: 912
Item date: 09.03.2009
Views: 545
Item date: 02.01.2009
Views: 1005
Item date: 02.01.2009
Views: 1930
Item date: 09.03.2009
Views: 1553