[Thread Prev][Thread Next][Index]

Variable number of args to 'go' script...



I don't recall if I asked this once before.

I'd like to use a go script with a variable number of args (up to 99 under 5.4,
IIRC). For example:

yes? go plot X A B C D ! will plot field X from files A, B, C, and D
yes? go plot X A D B   ! will plot field X from files A, B, and D only
yes? go plot X A       ! will plot field X from file  A only

Is there a straightforward way (akin to csh's "$#argv") to get the number of
args and then parse them (akin to $argv[1..N]) in FERRET?

Or would I be better off just building the 'go' script via perl or csh? Thanks.
--
/\        Gary Strand (303) 497-1336                                NCAR ML262A
  \_][    www.cgd.ucar.edu/ccr/strandwg                      1850 Table Mesa Dr
      \___strandwg@ucar.edu                       Boulder, Colorado, USA  80305


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement