commands.sh

expand

all

Convert tabs to spaces.

More info →

Options (2)

-i, --initialboolean

Do not convert tabs after non blanks

Example: expand {{[-i|--initial]}} {{path/to/file}}
-t, --tabsboolean

Have tabs a certain number of characters apart, not 8

Example: expand {{[-t|--tabs]}} {{number}} {{path/to/file}}

Examples (5)

Convert tabs in each file to spaces, writing to `stdout`

expand path/to/file

Convert tabs to spaces, reading from `stdin`

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
made by @shridhargupta | data from tldr-pages