Create sequence with zero padding
Hmm I got to pull series of git source from 01-13. But I'm too lazy so I googled then I found
program `seq`
I don't know it much but it can
>>> seq 1 10
1
2
3
4
5
6
7
8
9
10
>>> seq -w 1 10
01
02
03
04
05
06
07
08
09
10
>>> seq -w 01 10
01
02
03
04
05
06
07
08
09
10
Aha, So I see the light!!
>> for id in `seq -w 01 13`; do git pull XXXXX$id; done;
Yeh,! Many thank to links below!! :)
http://stackoverflow.com/questions/6446672/generating-huge-lists-of-numbers
http://stackoverflow.com/questions/8789729/zero-padding-in-bash
program `seq`
I don't know it much but it can
>>> seq 1 10
1
2
3
4
5
6
7
8
9
10
>>> seq -w 1 10
01
02
03
04
05
06
07
08
09
10
>>> seq -w 01 10
01
02
03
04
05
06
07
08
09
10
Aha, So I see the light!!
>> for id in `seq -w 01 13`; do git pull XXXXX$id; done;
Yeh,! Many thank to links below!! :)
http://stackoverflow.com/questions/6446672/generating-huge-lists-of-numbers
http://stackoverflow.com/questions/8789729/zero-padding-in-bash
Comments
Post a Comment