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
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

597 B

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:

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}}