[Thread Prev][Thread Next][Index]

Re: [ferret_users] nc2mc.sh



Hi,

| The list of files in this script is simply generated with
| set list0 = `echo *$namefrag*.nc`, i.e., the order of files is
| determined by the way how the tc-shell  expands the '*'.

You can build a list of filenames a.1.nc, a.2.nc, . . . , a.100.nc
by

  set list0 = ''
  foreach n ( `seq 1 100` )
    set list0 = "$list0 a.$n.nc"
  end

assuming the "seq" command is available.  For your information,
"seq -w 1 100" will give you "a.001.nc, a.002.nc, . . . , a.100.nc".

Cheers,
Ryo


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement