Range with leading zero in bash
bash
Solution
another seq trick will work:
seq -w 30
if you check the man page, you will see the -w option is exactly for your requirement:
-w, --equal-width
equalize width by padding with leading zeroes
Problem
How to add leading zero to bash range? For example, I need cycle 01,02,03,..,29,30 How can I implement this using bash?