Share on Facebook Share on Twitter Email
Answers.com

Expand

 
Wikipedia: Expand (Unix)

expand is a command in the UNIX Operating System. It is used to convert groups of tabs into space characters.

For example:

$ echo -e "\t foo" | expand | od -c
0000000                                       f   o   o  \n
0000015
$ echo -e "\t foo" | od -c
0000000  \t       f   o   o  \n
0000006


Here the echo command prints a string of text that includes a tab character, then the output is directed into the expand command. The resulting output is then displayed by the octal dump command od. At the second prompt, the same echo output is sent directly through the od command. As can be seen by comparing the two, the expand program converts the tab (printed as '\t') into spaces.

See also

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
condense
epitomize
Ginzberg, Eli (Quotes By)

What rhymes with expanding? Read answer...
Do galaxies expand? Read answer...
What is expandable mortgage? Read answer...

Help us answer these
Will glass expand?
What are expanders used for?
Does nitrogen expand?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Expand (Unix)" Read more