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?
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