Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!csd4.milw.wisc.edu!leah!rpi!batcomputer!cornell!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: alt.sources Subject: Re: cgname - collect file names from {e,f,}grep output Keywords: egrep fgrep grep Message-ID: <5319@pt.cs.cmu.edu> Date: 26 Jun 89 19:11:19 GMT References: <130@tridom.uucp> Organization: Carnegie-Mellon University, CS/RI Lines: 12 In article <130@tridom.uucp> wht@tridom.uucp (Warren Tucker) writes: }This quickie collects the filenames produced by grep output }while passing the output oin to stdout. I wrote it to help }me build a list of filenames to edit containing a certain string: At least on BSD Unix, the -l flag on {,e,f}grep does the same thing except for sorting the output if the file list given to grep is not alphabetical. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make. FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA -=-=- DISCLAIMER? I claimed something? --