Skip to Content
gnux

-t, --tabs

Have tabs N characters apart, not 8, or use comma separated list of explicit tab positions.

An option of expandx.

Usage

expandx -t N, LIST [FILE]...
expandx --tabs=N, LIST [FILE]...

Details

ShortLongValueDefaultMeaning
-t--tabsN, LISThave tabs N characters apart, not 8, or use comma separated list of explicit tab positions

Examples

Convert a Go file to 4-space indentation for a code review tool

expandx -t 4 main.go

Line a tab-separated report up in fixed columns for printing

expandx -t 10,20,40 table.tsv

Indent the first level by 4 and the rest by 8

expandx -t 4,/8 data.txt

Fix YAML indentation (tabs are invalid there) without touching tabs inside values

expandx -i -t 2 config.yml

Convert a Python file that mixes tabs and spaces

expandx -t 4 tabs.py > spaces.py

Preview a TSV file with readable columns

expandx -t 16 report.tsv | headx

Help in the terminal

gnux help expandx --tabs

On this page