Repeat printf arguments with command line operators
问题 I want to repeat the same argument $i for the instances 03-12. I'm really trying to use some nco operators - but the printf statement is hanging me up. I'm trying to use an netcdf operator on it - where these outputs of the printf are the input files to the command. While this works now with the printf statements, it's not piping into the netcdf command. Which goes as: ncea -v T,U inputfiles outputfile #!/bin/csh set i = 1 while ($i < 2) ncea -v T,U foreach j ( {3,4,6,7,8,9,10,11,12} )