Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!fmrco!harold From: harold@fmrco (Harold Naparst) Newsgroups: comp.unix.questions Subject: Expanding wildcard options to main() Message-ID: <1991Apr1.194817.20469@fmrco> Date: 1 Apr 91 19:48:17 GMT Article-I.D.: fmrco.1991Apr1.194817.20469 Sender: harold@fmrco (Harold Naparst) Organization: Fidelity Investments, Boston, MA 02109 Lines: 13 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.