Expanding wildcard options to main()

Harold Naparst harold at fmrco
Tue Apr 2 05:48:17 AEST 1991


How do you pass wildcard options to a program and get the
program to expand them like ls does.  Example: suppose I 
have two files called foo1 and foo2, and I want to run
myprog on them.  How would I write myprog so that I could
just do this:
   % myprog foo*

-- 
Harold Naparst               |  (uunet!fmrco!harold) 
Fidelity Investments         |  (617)-570-2587
82 Devonshire St., #I40B     |  The opinions expressed herein are not those
Boston, MA  02109            |  of my employer.



More information about the Comp.unix.questions mailing list