get list of file names from different subdirectories

From: Anandhi Aavudai <AavudaiA_at_nyahnyahspammersnyahnyah>
Date: Fri, 4 Sep 2009 04:03:14 -0400

Hi,

I have a directory "main" which has 20 subdirectories "a1", "a2", "a3", "a4",....... "a20"

Each of these 20sub directories have 3 netcdf files each

how do I get the list of netcdf file names (20*3=60 file names) from main directory using systemfunc?

fili = systemfunc("ls main\???\*.nc")

is there anyother way I may get it other than writing the complete path many times.

fili = systemfunc("ls main\a1\*.nc")
.
.
.
fili = systemfunc("ls main\a20\*.nc")

Thanks in advance for the support.

regards
Anandhi
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 04 2009 - 02:03:14 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 08 2009 - 11:49:50 MDT