-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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-t | --tabs | N, LIST | have 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.goLine a tab-separated report up in fixed columns for printing
expandx -t 10,20,40 table.tsvIndent the first level by 4 and the rest by 8
expandx -t 4,/8 data.txtFix YAML indentation (tabs are invalid there) without touching tabs inside values
expandx -i -t 2 config.ymlConvert a Python file that mixes tabs and spaces
expandx -t 4 tabs.py > spaces.pyPreview a TSV file with readable columns
expandx -t 16 report.tsv | headxHelp in the terminal
gnux help expandx --tabs