Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hplabs!hpl-opus!hpnmdla!bingham From: bingham@hpnmdla.sr.hp.com (David Bingham) Newsgroups: comp.os.msdos.programmer Subject: Re: "finding" text in files Message-ID: <11270007@hpnmdla.sr.hp.com> Date: 1 Jun 91 00:01:20 GMT References: <16428@darkstar.ucsc.edu> Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 27 Have you got a copy of 'grep' setting around? That will do it. The alternative would be to write a fancy batch program that would do some fancy piping. i.e. For %1 in... do this and pipe the output into this file here.... (short pause whilst I actually look up what I'm talking about...) @Echo off FOR %%A in (%1) do find "%2" %%A >> %3 Copy that into a batch file. The calling syntax is: batch.bat fileset string file_name fileset = file to search (wildcards allowed) string = string you are looking for (i.e. E:) file_name = the file you want the results stored in I hope that's clear. Drop me a line if it isn't. David ************************************************************************ David Bingham * The power of faith and love Hewlett Packard * Can change the stuff we're made of bingham@hpnmqa1.sr.hp.com * Michael W. Smith