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

24 lines
542 B
Markdown
Raw Permalink 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.

# 扩展
> 将制表符转换为空格。
> 更多信息:<https://www.gnu.org/software/coreutils/expand>。
- 将每个文件中的制表符转换为空格,写入 `stdout`
`expand {{path/to/file}}`
-`stdin` 读取,将制表符转换为空格:
`expand`
- 不在非空白字符后转换制表符:
`expand -i {{path/to/file}}`
- 制表符之间的字符数不是 8而是某个特定的数字
`expand -t {{number}} {{path/to/file}}`
- 使用以逗号分隔的显式制表符位置列表:
`expand -t {{1,4,6}}`