Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!usc!randvax!ucla-an!hermix!lance From: lance@hermix.UUCP (Lance Ellinghouse) Newsgroups: comp.sources.wanted Subject: Re: pattern matching Summary: shell and not ls Keywords: pattern matching Message-ID: <276@hermix.UUCP> Date: 19 May 89 23:02:50 GMT References: <2414@cveg.uucp> <10288@smoke.BRL.MIL> Organization: Mark V Systems, Ltd., Encino, Ca. Lines: 16 In article <10288@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn) writes: > In article <2414@cveg.uucp> mhb@hcx.uucp (MARK H BOTNER) writes: > -Can anybody help me with pattern matching? I'm trying to match > -a string against a pattern such as '*' or '*.*' in the same manner that > -the 'ls' command uses. > > That should be extremely easy, as "ls" does no pattern matching. > This is true. The shell does the expansion of wild card characters. the program just gets a list. -- Lance Ellinghouse Mark V Systems, Ltd. UUCP: ...!hermix!lance ARPA: ucla-an!hermix!lance@ee.UCLA.EDU