I have sub-folders named 00 01 02, ... n with each foldername containing at least 2 digits. I need to access these sub-folders in os-x terminal. The commandfor i in $(seq -w 00 06); doecho $i;doneproduces an output of 0 1 2 3 4 5 6. However, the above code in RHEL will produce an output of 00 01 02 03 04 05 06. How can I enforce mac terminal to produce an output of at least 2 digits similar to RHEL?
seq -w equivalent in os-x bash
terminal;osx;seq
I don't have an os-x to try it on, but perhaps this alternative works:seq -f '%02.0f' 0 6