UNEXPAND(1)
β¨ UNEXPAND(1) β¨
okay bestie, gather round, because unexpand is literally the glow-up arc of your whitespace π
πΈ NAME πΈ
unexpand β convert spaces to tabs (yes, the reverse of that other one, we love a symmetrical queen π
π SYNOPSIS π
unexpand [OPTION]... [FILE]...
π DESCRIPTION π
So here's the vibe: it converts blanks in each FILE to tabs, and writes the result to standard output. That's it. That's the whole job. Iconic, no notes. π¦
With no FILE, or when FILE is -, it reads standard input. (Yes, - means "stdin, bestie," classic move.)
Heads up, mandatory arguments to long options are mandatory for short options too. Like, fr fr. Don't skip them and then act surprised. π
-a,--allβ convert all blanks, instead of just initial blanks. all of them. every single one. she's thorough π--first-onlyβ convert only leading sequences of blanks. this one overrides-a, so if you had both going on,--first-onlywins the argument. no cap.-t,--tabs=Nβ have tabsNcharacters apart instead of8. and psst, this enables-atoo. sneakily. π-t,--tabs=LISTβ use a comma separated list of tab positions. two lil extras here, and they're lowkey the best part:- 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
- the last specified position can be prefixed with
--helpβ display this help and exit. the "help me bestie" button π«Ά--versionβ output version information and exit. for when you gotta know what era we're in β
π AUTHOR π
Written by David MacKenzie. king behavior, honestly π
π REPORTING BUGS π
Found a bug? Not me finding bugs, but okay, if you do:
- 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/>
- Report any translation bugs to <https://translationproject.org/team/>
π SEE ALSO π
expand(1)β her sister, the one who does the opposite direction. family π- Full documentation <https://www.gnu.org/software/coreutils/unexpand>
- or available locally via:
info '(coreutils) unexpand invocation'
Packaged by Ubuntu (9.10-1ubuntu2) Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and that's a wrap, babe π this whole thing is GNU coreutils 9.10, dated August 2026, and it's an UNEXPAND(1) moment. go convert some blanks. slay. πβ¨
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms