Files
tldr/pages.zh/common/unexpand.md

24 lines
600 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# unexpand
> 将空格转换为制表符。
> 更多信息:<https://www.gnu.org/software/coreutils/unexpand>。
- 将每个文件中的空格转换为制表符,并写入 `stdout`
`unexpand {{path/to/file}}`
-`stdout` 读取,转换空格为制表符:
`unexpand`
- 转换所有空格,而不仅仅是开头的空格:
`unexpand -a {{path/to/file}}`
- 仅转换开头的空格序列(覆盖 -a 选项):
`unexpand --first-only {{path/to/file}}`
- 将制表符设置为特定的字符间距,而不是 8启用 -a 选项):
`unexpand -t {{number}} {{path/to/file}}`