unexpand
unexpand is a shell command that converts space characters to tab characters. Originally, developed for Unix and standardized by POSIX, it is available on many operating systems today. In the following commands, the echo command prints a string of text that includes multiple consecutive spaces. The output is directed into . The resulting output is displayed as octal via od . At the second prompt, the same echo output is sent directly to . As shown, converts each sequence of eight spaces to a tab (printed as '\t'). $ echo " asdf sdf". Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
unexpand is a shell command that converts space characters to tab characters. Originally, developed for Unix and standardized by POSIX, it is available on many operating systems today. In the following commands, the echo command prints a string of text that includes multiple consecutive spaces. The output is directed into . The resulting output is displayed as octal via od . At the second prompt, the same echo output is sent directly to . As shown, converts each sequence of eight spaces to a tab (printed as '\t'). $ echo " asdf sdf" | unexpand | od -c 0000000 \t \t a s d f s d f \n 0000014 $ echo " asdf sdf" | od -c 0000000 0000020 a s d f s d f \n 0000032 ==See also== List of POSIX commands Expand (Unix) ==References== ==External links== [https://web.archive.org/web/20051031053512/http://www.linuxmanpages.com/man1/unexpand.1.php] The program's manpage
Cite this
"unexpand". 1765027246. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1326004648 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy