EXPAND(1)
π EXPAND(1) β the girlies' guide to un-tabbing ur life
okay so bestie, welcome to expand, from the General Commands Manual section 1. it's giving "my tabs are a mess and i need them to be spaces" and honestly? same. let's get into it.
β¨ NAME β¨
expand β convert tabs in each FILE to spaces, writing to standard output. with no FILE, or when FILE is -, read standard input. π
π¦ SYNOPSIS π¦
expand [OPTION]... [FILE]...
πΈ DESCRIPTION πΈ
Convert tabs in each FILE to spaces, writing to standard output. With no FILE, or when FILE is -, read standard input.
like. that's the whole vibe. tabs in β‘οΈ spaces out. it writes to standard output, it doesn't touch ur files, so don't panic, ur original is safe hun π
π OPTIONS π
-i,--initialβ do NOT convert tabs after non blanks. so tabs that show up after something that isn't a blank just stay exactly as they are. lowkey the "hands off my indentation" flag π-t,--tabs<N, LIST> β have tabs N characters apart, not 8, or use a comma separated list of explicit tab positions. so u can go "every 8" (the default, no cap) or literally spell out where u want the tab stops to land π-U,--no-utf8β interpret input file as 8-bit ASCII rather than UTF-8. for when ur input is old school like that π-h,--helpβ Print help. ur bestie when ur lost π«Ά-V,--versionβ Print version. the receipts, periodt β¨
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
Convert tabs in each file to spaces, writing to stdout:
expand path/to/file
Convert tabs to spaces, reading from stdin:
expand
Do not convert tabs after non blanks:
expand [-i|--initial] path/to/file
Have tabs a certain number of characters apart, not 8:
expand [-t|--tabs] number path/to/file
Use a comma separated list of explicit tab positions:
expand [-t|--tabs] 1,4,6
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.
ngl the tldr girlies <https://tldr.sh> hooked us UP with those examples and they're under the CC BY 4.0 License π and fr fr, uutils is a work in progress, so a couple examples might just... not hit. not their fault, not ur fault, it's growing π±
okay that's the whole page babes, go forth and expand πΈ this was EXPAND(1), dated 2026-09-25, running on v(uutils coreutils) 0.12.0 β mwah, slay, bye π
πβ¨
π¦ 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