Bash and zsh both have a very neat feature for expanding a single word into more: brace expansion.
For the simplest example, imagine you need to move file.old as file.new. Normally you type:
Brace expansion can save you a little bit of typing:
The command actually executed will be identical to the previous one, “file.{old,new}” gets converted into “file.old file.new”.
You can also provide a number range inside the brace:
With a third parameter, the number will be increased by that much each time (step):
Only a zsh feature is padding. You can add leading zeros to generated number to make them all the same (character) size, by adding zero(s) to the third parameter:
Zsh offers even more flexibility after setting BRACE_CCL option – you can use range of characters as well: