KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to loop some values, for i in $(seq $first $last) do does something here done For $first and $last , I need it to be of fixed length 5. So if the input is 1 , I need to add zeros in front such that it becomes 00001 . It loops till 99999 for example, but the length has to be 5. E.g.: 00002 , 00042 , 00212 , 12312 and so forth. Any idea on how I can do that?
Tags (comma-separated)
Save Edits
Cancel