From 44c68a12860a8ec275b73cc219027b522e4154e8 Mon Sep 17 00:00:00 2001 From: Iftakhar Husan <37600593+Iftakharpy@users.noreply.github.com> Date: Wed, 13 Dec 2023 23:47:25 +0200 Subject: [PATCH] Add multi range brace expansion to bash.md (#2071) --- bash.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bash.md b/bash.md index c079175f0a..79178234cf 100644 --- a/bash.md +++ b/bash.md @@ -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)