EXPAND(1)
๐ EXPAND(1) ๐
okay so bestie, you know that one manual page called expand? It's from the User Commands corner of the man-page universe, and honestly it's giving โจquiet luxuryโจ โ tiny, useful, no drama. Let's get into it ๐
๐ธ NAME ๐ธ
expand โ convert tabs to spaces. That's it. That's the whole job. And she does it flawlessly ๐
โจ SYNOPSIS โจ
expand [OPTION]... [FILE]...
literally just toss some options and some files at her and she goes ๐ฆ
๐ DESCRIPTION ๐
She takes every tab inside each FILE and turns it into spaces, then writes the whole glow-up to standard output. No cap.
If you don't give her any FILE, or if FILE is -, she reads from standard input instead. She's flexible like that ๐ซถ
Real talk: mandatory arguments for long options are also mandatory for the short ones. The = is not decorative, bestie, it's the rules ๐ญ
๐ the options ๐
-i,--initialโ do not convert tabs that come after non-blank characters. Leave those tabs alone, she said ๐-t,--tabs=Nโ make tabs N characters apart instead of the usual8. Custom spacing, main character energy ๐-t,--tabs=LISTโ now we're fancy: give her a comma separated list of tab positions. A few extra rules come with the vibes:- the last specified position can be prefixed with
/โ that sets a tab size to use after the last explicitly specified tab stop ๐ธ - a prefix of
+can be used to align the 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. She'll tell you everything she knows, and she knows a lot ๐--versionโ output version information and exit. Iconic queen behavior, showing her credentials โญ
๐ฆ AUTHOR ๐ฆ
Written by David MacKenzie. Legend behavior, fr fr ๐
๐ REPORTING BUGS ๐
Found a bug? Not her fault, but tell the team anyway bestie:
- 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. (Say it with me: no warranty, no cap ๐ค)
โญ SEE ALSO โญ
unexpand(1)โ the reverse queen, she does the opposite ๐ธ- Full documentation
<https://www.gnu.org/software/coreutils/expand>or available locally via:info '(coreutils) expand invocation'
and that's the whole page, bestie ๐ซถ this was GNU coreutils 9.12, dated September 2026, and yes she really is just a little tab-to-space machine with impeccable taste. go convert something, ily ๐โจ๐
๐ฆ 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