2016-06-21 18:38:36 +01:00
|
|
|
# expand
|
|
|
|
|
|
|
|
> Convert tabs to spaces.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/expand>.
|
2016-06-21 18:38:36 +01:00
|
|
|
|
|
|
|
- Convert tabs in each file to spaces, writing to standard output:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`expand {{path/to/file}}`
|
2016-06-21 18:38:36 +01:00
|
|
|
|
|
|
|
- Convert tabs to spaces, reading from standard input:
|
|
|
|
|
|
|
|
`expand`
|
|
|
|
|
|
|
|
- Do not convert tabs after non blanks:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`expand -i {{path/to/file}}`
|
2016-06-21 18:38:36 +01:00
|
|
|
|
|
|
|
- Have tabs a certain number of characters apart, not 8:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`expand -t={{number}} {{path/to/file}}`
|
2016-06-21 18:38:36 +01:00
|
|
|
|
2019-10-05 10:21:20 +01:00
|
|
|
- Use a comma separated list of explicit tab positions:
|
2016-06-21 18:38:36 +01:00
|
|
|
|
2019-10-05 10:21:20 +01:00
|
|
|
`expand -t={{1,4,6}}`
|