OS Manuals

/usr/bin/unexpand

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running unexpand --help (exit 0). permalink

Usage: /usr/bin/unexpand [OPTION]... [FILE]...
Convert blanks in each FILE to tabs, writing to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all
         convert all blanks, instead of just initial blanks
      --first-only
         convert only leading sequences of blanks (overrides -a)
  -t, --tabs=N
         have tabs N characters apart instead of 8 (enables -a)
  -t, --tabs=LIST
         use comma separated list of tab positions.
         The last specified position can be prefixed with '/'
         to specify a tab size to use after the last
         explicitly specified tab stop.  Also a prefix of '+'
         can be used to align remaining tab stops relative to
         the last specified tab stop instead of the first column
      --help
         display this help and exit
      --version
         output version information and exit

Report bugs to: <bug-coreutils@gnu.org>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/unexpand>
or available locally via: info '(coreutils) unexpand invocation'
Options (5)
OptionDescriptionSource
-a, --allconvert all blanks, instead of just initial blankshelp + man
--first-onlyconvert only leading sequences of blanks (overrides -a)help + man
-t, --tabs Nhave tabs N characters apart instead of 8 (enables -a)help + man
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.