View Single Post
  #6   (View Single Post)  
Old 6th July 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

A bit late to the party, but awk's sprintf() can be useful for this sort of thing,

Code:
for( j=9; j<12; j++ ) { system( sprintf( "cal %d 2011 ", j ) ) }
Reply With Quote