tldr/pages/common/unexpand.md

25 lines
579 B
Markdown
Raw Normal View History

2016-06-21 18:38:08 +01:00
# unexpand
> Convert spaces to tabs.
2021-03-30 14:55:24 +01:00
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/unexpand-invocation.html>.
2016-06-21 18:38:08 +01:00
- Convert blanks in each file to tabs, writing to standard output:
`unexpand {{file}}`
- Convert blanks to tabs, reading from standard output:
`unexpand`
- Convert all blanks, instead of just initial blanks:
`unexpand -a {{file}}`
- Convert only leading sequences of blanks (overrides -a):
`unexpand --first-only {{file}}`
- Have tabs a certain number of characters apart, not 8 (enables -a):
`unexpand -t {{number}} {{file}}`