UNEXPAND(1)
β¨ NAME β¨
unexpand β okay bestie, this is the girl who turns blanks in each FILE into tabs, and writes it all to standard output. No FILE? Or FILE is -? Then she's reading from standard input, periodt. π
π¦ SYNOPSIS π¦
unexpand [OPTION]... [FILE]...
π DESCRIPTION π
So like, unexpand converts blanks in each FILE to tabs, and writes the result to standard output. That's her whole thing. That's the vibe. πΈ
With no FILE, or when FILE is -, she reads from standard input instead. Simple. Iconic. No notes. π
π OPTIONS π
-a,--allβ convert all blanks, not just the initial blanks. she's going all in, no half measures π-f,--first-onlyβ convert only leading sequences of blanks. and yes, this one overrides-aβ she said what she said π-t,--tabs <N, LIST>β use a comma separated LIST of tab positions, or have tabs N characters apart, instead of8. psst: this enables-aβ¨-U,--no-utf8β interpret the input file as 8-bit ASCII rather than UTF-8. old-school mode fr fr-h,--helpβ Print help π«Ά-V,--versionβ Print version β
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
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|--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
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π (not me manifesting they all pass tho π―οΈ)
okay that's the whole page bestie, you ate that π this was the UNEXPAND(1) page from uutils coreutils 0.12.0, dated 2026-09-25 β general commands manual energy, and honestly? she served. bye pookie, go tab some blanks ππ§
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms