You could use a schell script or perl or python or ...
The folling could be an NCL script, say, run_ncl
scrDir = "./"
scrNames = (/"foo_1.ncl", "dumy_2.ncl", "tst_3.ncl"/)
nscr = dimsizes(scrNames)
do ns=0,nscr-1
system("ncl "+scrDir+scrNames(ns))
end do
%> ncl run_ncl
the scrNames could be specified manually (as above) or via
scrNames = systemfunc("cd "+scrDir+" ; ls *ncl")
Good luck
On 3/19/12 11:42 AM, Panday, Prajjwal wrote:
> Hello
>
> I have a list of files ending in *.ncl. Is there a way I can list them
> all in a text file and run them from the command line rather than having
> to execute one by one?
>
> Thanks,
> Prajjwal
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 19 14:08:41 2012
This archive was generated by hypermail 2.1.8 : Tue Mar 20 2012 - 15:27:15 MDT