1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/unexpand.md

25 lines
597 B
Markdown
Raw Normal View History

2016-06-21 18:38:08 +01:00
# unexpand
> Convert spaces to tabs.
> 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 `stdout`:
2016-06-21 18:38:08 +01:00
2022-12-04 10:12:49 +01:00
`unexpand {{path/to/file}}`
2016-06-21 18:38:08 +01:00
- Convert blanks to tabs, reading from `stdout`:
2016-06-21 18:38:08 +01:00
`unexpand`
- Convert all blanks, instead of just initial blanks:
2022-12-04 10:12:49 +01:00
`unexpand -a {{path/to/file}}`
2016-06-21 18:38:08 +01:00
- Convert only leading sequences of blanks (overrides -a):
2022-12-04 10:12:49 +01:00
`unexpand --first-only {{path/to/file}}`
2016-06-21 18:38:08 +01:00
- Have tabs a certain number of characters apart, not 8 (enables -a):
2022-12-04 10:12:49 +01:00
`unexpand -t {{number}} {{path/to/file}}`