2025-03-14 21:59:59 -06:00
|
|
|
# unexpand
|
|
|
|
|
|
|
|
|
|
> Convert spaces to tabs.
|
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/unexpand-invocation.html>.
|
|
|
|
|
|
|
|
|
|
- Convert blanks in each file to tabs, writing to `stdout`:
|
|
|
|
|
|
|
|
|
|
`unexpand {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Convert blanks to tabs, reading from `stdout`:
|
|
|
|
|
|
|
|
|
|
`unexpand`
|
|
|
|
|
|
|
|
|
|
- Convert all blanks, instead of just initial blanks:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`unexpand {{[-a|--all]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Convert only leading sequences of blanks (overrides -a):
|
|
|
|
|
|
|
|
|
|
`unexpand --first-only {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Have tabs a certain number of characters apart, not 8 (enables -a):
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`unexpand {{[-t|--tabs]}} {{number}} {{path/to/file}}`
|