/ Published in: Bash
This script gives a list of year month combinations from 2006 to 2010. Also have a look at cal, if you are doing something with dates.
Tags: seq, year, month, bash, loop, for
Expand |
Embed | Plain Text
for year in `seq 2006 2010` do for month in `seq 1 12` do echo $year $month done done
You need to login to post a comment.
