请输入您要查询的百科知识:

 

词条 Unexpand
释义

  1. See also

  2. External links

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

For example:

$ echo " asdf sdf" | unexpand | od -c

0000000 \\t \\t a s d f s d f \

0000014

$ echo " asdf sdf" | od -c

0000000

0000020 a s d f s d f \

0000032

Here the echo command prints a string of text that includes multiple consecutive spaces, then the output is directed into the unexpand 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 unexpand program converts sequences of eight spaces into single tabs (printed as '\\t').

See also

  • List of Unix commands
  • Expand (Unix)

External links

  •   The program's manpage

1 : Unix SUS2008 utilities

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 16:35:28