Skip to content

Commit

Permalink
Add multi range brace expansion to bash.md (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iftakharpy authored and rstacruz committed Dec 13, 2023
1 parent 1dbdb9c commit 44c68a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ See: [Unofficial bash strict mode](http://redsymbol.net/articles/unofficial-bash
echo {A,B}.js
```

| Expression | Description |
| ---------- | ------------------- |
| `{A,B}` | Same as `A B` |
| `{A,B}.js` | Same as `A.js B.js` |
| `{1..5}` | Same as `1 2 3 4 5` |
| Expression | Description |
| ------------------- | --------------------- |
| `{A,B}` | Same as `A B` |
| `{A,B}.js` | Same as `A.js B.js` |
| `{1..5}` | Same as `1 2 3 4 5` |
| `{{1..3},{7..9}}` | Same as `1 2 3 7 8 9` |

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

Expand Down

0 comments on commit 44c68a1

Please sign in to comment.