Skip to content

Commit 44c68a1

Browse files
Iftakharpyrstacruz
authored andcommitted
Add multi range brace expansion to bash.md (#2071)
1 parent 1dbdb9c commit 44c68a1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bash.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ See: [Unofficial bash strict mode](http://redsymbol.net/articles/unofficial-bash
118118
echo {A,B}.js
119119
```
120120

121-
| Expression | Description |
122-
| ---------- | ------------------- |
123-
| `{A,B}` | Same as `A B` |
124-
| `{A,B}.js` | Same as `A.js B.js` |
125-
| `{1..5}` | Same as `1 2 3 4 5` |
121+
| Expression | Description |
122+
| ------------------- | --------------------- |
123+
| `{A,B}` | Same as `A B` |
124+
| `{A,B}.js` | Same as `A.js B.js` |
125+
| `{1..5}` | Same as `1 2 3 4 5` |
126+
| `{{1..3},{7..9}}` | Same as `1 2 3 7 8 9` |
126127

127128
See: [Brace expansion](https://web.archive.org/web/20230207192110/https://wiki.bash-hackers.org/syntax/expansion/brace)
128129

0 commit comments

Comments
 (0)