Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!cornell!uw-beaver!microsoft!danno From: danno@microsoft.UUCP (Daniel A. Norton) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Wildcard expansion for any command, w/DLC source Summary: It's not necessary Message-ID: <1651@microsoft.UUCP> Date: 28 Jul 88 13:09:52 GMT References: <3500@bsu-cs.UUCP> Organization: Microsoft Corp. Lines: 27 Although this program makes it easier, it's not really necessary: In article <3500@bsu-cs.UUCP>, bright@dataio.Data-IO.COM (Walter Bright) writes: > > commands would be done as: > WILDCARD FIND -"string" *.c > and: > WILDCARD FIND -"string" file1 file2 file3 You could write: for %i in ( *.c ) do find "string" %i or for %i in ( file1 file2 file3 ) do find "string" %i If it's in a batch file you'd need to change the "%i" to "%%i", like this: for %%i in (*.c) do find "string" %%i -- Any opinions expressed are mine, not my employer's. nortond@microsof.beaver.washington.EDU nortond%microsof@uw-beaver.ARPA {decvax,decwrl,sco,sun,trsvax,uunet,uw-beaver}!microsof!nortond