snippetbashTip
unexpand — Convert spaces to tabs. More information: <https://www.gnu.org/software/coreutils/manual/html_node/u
Viewed 0 times
tabscommandunexpandspacesconvertcliinformationmore
Problem
How to use the
unexpand command: Convert spaces to tabs. More information: <https://www.gnu.org/software/coreutils/manual/html_node/unexpand-invocation.html>.Solution
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:unexpandConvert all blanks, instead of just initial blanks:
unexpand {{[-a|--all]}} {{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|--tabs]}} {{number}} {{path/to/file}}Code Snippets
Convert blanks in each file to tabs, writing to `stdout`
unexpand {{path/to/file}}Convert blanks to tabs, reading from `stdout`
unexpandConvert all blanks, instead of just initial blanks
unexpand {{[-a|--all]}} {{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|--tabs]}} {{number}} {{path/to/file}}Context
tldr-pages: common/unexpand
Revisions (0)
No revisions yet.