expansion
Bash Brace sequence
Generates an inclusive integer or single-letter sequence with optional increment. If either integer endpoint starts with zero, Bash pads the generated numbers to the required width.
Formal Syntax & Structure
bash syntaxbash
{start..end[..step]}Return Value
shell behavior
Generates an inclusive integer or single-letter sequence with optional increment. If either integer endpoint starts with zero, Bash pads the generated numbers to the required width.
Working Example
Example Snippetbash
printf '%s\n' part-{02..06..2}