EXPAND(1)
π expand(1) β the tab-to-spaces glow-up π
ok so bestie, gather round, because this is expand, a lil Perl-powered icon from the Perl Power Tools universe, and honestly? she's serving utility. π
β¨ NAME β¨
expand β converts tabs to spaces. that's it. that's the whole gig. and she ate. π
πΈ SYNOPSIS πΈ
expand [-tabstop] [-tab1,tab2,...] [file ...]
π¦ DESCRIPTION π¦
okay so here's the tea β β expand takes the files you name (or the standard input if you don't name any, she's flexible like that π«Ά) and writes to the standard output with all the tabs changed into blanks. tabs β spaces. glow-up complete. β¨
and listen, she's respectful: backspace characters are preserved into the output, and they also decrement the column count for tab calculations. so the math stays honest, no cap. π―
why would you even need this? because expand is genuinely useful for pre-processing character files β like before sorting, or before looking at specific columns, or literally any time your file has tabs in it and you need to know where things actually line up. it's giving "fix it before the real work starts" energy. π₯
β OPTIONS β
-tabstopβ sets tabstabstopspaces apart instead of the default 8. so like,-4means tabs every 4 spaces. your call, main character. π-tab1,tab2,...β sets tabs at the specific column numberstab1,tab2, and so on. fully custom tab stops, one little comma-separated list of them, iykyk. π
π AUTHOR π
the Perl implementation was written by Thierry Bezecourt, thbzcrt@worldnet.fr. π part of the Perl Power Tools project, March 1999. iconic behavior, honestly, we stan a 90s Perl revival moment. π§
and the docs themselves? this documentation comes from the BSD expand(1) man page. credit where credit is due, bestie. π
π COPYRIGHT and LICENSE π
this program is free and open software. ποΈ you may use, modify, distribute, and sell this program (and any modified variants) in any way you wish β the one condition being you do not restrict others from doing the same. that's it. that's the whole vibe. share the love, don't be weird about it. π
ngl the license is basically "be cool to each other" in legal form and I respect it so much ππ«Ά
and that's the page!! this beauty ships with perl v5.42.2, dated 2026-02-15 β so go forth, expand those tabs, and slay. π β¨π
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms