Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: calendar print outs

by drock (Beadle)
on Dec 20, 2004 at 21:04 UTC ( #416321=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://416321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-02-05 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?