File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
- Isolate variable names:
7
7
8
- ` echo ${HOME}work `
8
+ ` echo ${{{ HOME}work}} `
9
9
10
10
- Brace expand sequences:
11
11
12
- ` echo {1..3} { a..c}{ dir1,dir2,dir3} `
12
+ ` echo {{{ 1..3}}} {{{ a..c}}}{{{ dir1,dir2,dir3}} } `
13
13
14
14
- Check if ` variable ` is set before returning text:
15
15
16
- ` echo ${variable:+variable is set and contains $variable} `
16
+ ` echo ${{{ variable:+variable is set and contains $variable}} } `
17
17
18
18
- Set default values in case ` variable ` is unset:
19
19
20
- ` echo ${variable:-default} `
20
+ ` echo ${{{ variable:-default}} } `
21
21
22
22
- Return ` variable ` length in characters:
23
23
24
- ` echo ${#variable} `
24
+ ` echo ${{{ #variable}} } `
25
25
26
26
- Return a string slice:
27
27
28
- ` echo ${variable:3:7} `
28
+ ` echo ${{{ variable:3:7}} } `
29
29
30
30
- Recursively expand a ` variable ` :
31
31
32
- ` echo ${!variable} `
32
+ ` echo ${{{ !variable}} } `
33
33
34
34
- Group command output together:
35
35
You can’t perform that action at this time.
0 commit comments