mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 18:59:06 +00:00
Update cheatsheets
This commit is contained in:
29
expand
Normal file
29
expand
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# expand
|
||||
|
||||
> Convert tabs to spaces.
|
||||
> More information: <https://www.gnu.org/software/coreutils/expand>.
|
||||
|
||||
- Convert tabs in each file to spaces, writing to `stdout`:
|
||||
|
||||
`expand {{path/to/file}}`
|
||||
|
||||
- Convert tabs to spaces, reading from `stdin`:
|
||||
|
||||
`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}}`
|
||||
Reference in New Issue
Block a user