Thread
:
AWK passing the argument to system command
View Single Post
#
6
(View Single Post)
6th July 2011
IdOp
Too dumb for a smartphone
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
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 ) ) }
IdOp
View Public Profile
Find all posts by IdOp