tldr/pages/common/unexpand.md
Lena d427f333b2
pages/*: add backticks around I/O streams (#10436)
* as suggested in #10428
* standard input  => `stdin`
* standard output => `stdout`
* standard error  => `stderr`

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 10:59:02 +05:30

564 B

unexpand

Convert spaces to tabs. More information: https://www.gnu.org/software/coreutils/unexpand.

  • 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:

unexpand -a {{path/to/file}}

  • 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):

unexpand -t {{number}} {{path/to/file}}