UNEXPAND(1)
๐ธ NAME ๐ธ
okay so hi bestie, welcome to unexpand ๐ this little icon lives in the User Commands part of the manual (that's the (1) in unexpand(1), iykyk), and its whole entire personality is: convert spaces to tabs. that's it. that's the job. slay.
โจ SYNOPSIS โจ
unexpand [OPTION]... [FILE]...
๐ฆ DESCRIPTION ๐ฆ
So what it does is: it converts the blanks in each FILE into tabs, and writes the result to standard output. lowkey elegant, ngl.
If you give it no FILE at all, or if FILE is -, it reads from standard input. yes bestie, the classic - means stdin move ๐ซถ
Also, mandatory arguments to long options are mandatory for short options too. that's just how it is, periodt.
Here's the whole menu of options, and you already know I'm not skipping a single one:
-a,--allโ converts all the blanks, instead of just the initial ones. go big or go home energy ๐ฅ--first-onlyโ converts only leading sequences of blanks (and yes, this overrides-a. it said "not today" ๐ )-t,--tabs=Nโ have tabsNcharacters apart instead of8(heads up: this enables-a)-t,--tabs=LISTโ use a 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. very customizable, very main character โจ--helpโ display this help and exit--versionโ output version information and exit
ngl the two -t forms share the same flag but mean different things depending on what you hand them, so vibe check your arguments before you commit ๐ญ
๐ AUTHOR ๐
Written by David MacKenzie. shoutout to David, actual legend, we love him ๐
๐ REPORTING BUGS ๐
Found something cursed? tell the people:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
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.
read that again bestie: NO WARRANTY. to the extent permitted by law. it's giving "you're on your own but lovingly" ๐
๐ SEE ALSO ๐
expand(1)โ the sibling, the reverse, the other half of the duo ๐ฆ- Full documentation <https://www.gnu.org/software/coreutils/unexpand>
- or available locally via:
info '(coreutils) unexpand invocation'
and that's the whole page, bestie ๐ this was GNU coreutils 9.12, dated September 2026, from the UNEXPAND(1) page โ go forth and tab responsibly, mwah ๐โจ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms