/ Published in: Bash
                    
                                        
This script gives a list of year month combinations from 2006 to 2010.
Also have a look at [cal](http://en.wikipedia.org/wiki/Cal_(Unix)), if you are doing something with dates.
Tags: seq, year, month, bash, loop, for
                Also have a look at [cal](http://en.wikipedia.org/wiki/Cal_(Unix)), if you are doing something with dates.
Tags: seq, year, month, bash, loop, for
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
for year in `seq 2006 2010`
do
for month in `seq 1 12`
do
echo $year $month
done
done
Comments
 Subscribe to comments
                    Subscribe to comments
                
                