In zsh, one can create an expression of {nx..ny}, for example to select files x to y inside a folder.
For example, {1..50} selects items, files, etc. from 1 to 50.
How can I concatenate two two brace expansions into one?
Example: I would like to select {1..50} and {60..100} for one and the same output.
You can nest brace expansions, so this will work:
Brace expansions support lists as well as sequences, and can be included in strings:
Note that brace expansions are not glob patterns. The
{n..m}expansion will include every value between the start and end values, regardless of whether a file exists by that name. For finding files in folders, the<->glob expression will usually work better: