1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/common/expand.md
2022-12-04 19:12:49 +10:00

516 B

expand

Convert tabs to spaces. More information: https://www.gnu.org/software/coreutils/expand.

  • Convert tabs in each file to spaces, writing to standard output:

expand {{path/to/file}}

  • Convert tabs to spaces, reading from standard input:

expand

  • Do not convert tabs after non blanks:

expand -i {{path/to/file}}

  • Have tabs a certain number of characters apart, not 8:

expand -t={{number}} {{path/to/file}}

  • Use a comma separated list of explicit tab positions:

expand -t={{1,4,6}}