expand man page

expand — convert tabs to spaces


expand {{file}}


expand -i {{file}}

expand -t={{number}} {{file}}

expand -t={{list}}


expand [OPTION]... [FILE]...


Convert tabs in each FILE to spaces, writing to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

-i, --initial
do not convert tabs after non blanks
-t, --tabs=NUMBER
have tabs NUMBER characters apart, not 8
-t, --tabs=LIST
use comma separated list of explicit tab positions
display this help and exit
output version information and exit


Written by David MacKenzie.

Reporting Bugs

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report expand translation bugs to <http://translationproject.org/team/>

See Also


Full documentation at: <http://www.gnu.org/software/coreutils/e…>
or available locally via: info '(coreutils) expand invocation'

Referenced By

col(1), colrm(1), perlmodlib(1), unexpand(1).

Explore man page connections for expand(1).

GNU coreutils 8.25 October 2016