Using FERRET command how can I have the number of data in a folder with *.nc extension? There are 12 sub-folders in the folder. I want to use the files belongs to in each of them.
I use the following command:
repeat/range=1:12/name=ll ( ;\
LET a = {"dummy", SPAWN:"/2013.0`ll`/ls *.nc"} ;\
LET nfiles = `a,RETURN=IEND` ;\
repeat/range=1:`nfile`/name=dd ( let dummy=a[i=`dd`]; use `dummy`; sh da; can da/all) ;\)