http://qs1969.pair.com?node_id=416321


in reply to Re: calendar print outs
in thread Calendar print outs

ok here is what I have
for (2005..2006) { system ("cal $_ > /tmp/file"); }
But how would I get this for individual months for instance in KSH for year in 2004 2005 2006 do for month in 1 2 3 4 5 6 7 8 9 10 11 12 do cal $year/$month

Replies are listed 'Best First'.
Re^3: calendar print outs
by Anonymous Monk on Dec 20, 2004 at 21:13 UTC
    perl -e 'for $y (2005..2006) {for $m (1..12) {system "cal $m $y"}}' \ > /tmp/file