Created
June 26, 2013 07:39
-
-
Save sebastianwagner/5865484 to your computer and use it in GitHub Desktop.
Generate list of numbers with zero padding in front. Adjust size of padding according to length of maximum given.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export Y=100; Z=${#Y}; for x in $(seq 1 $Y); do echo $(printf "%0"$Z"d" $x); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment