Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.questions Subject: Re: string search in "rn" Keywords: KILL file Message-ID: <11067@jpl-devvax.JPL.NASA.GOV> Date: 15 Jan 91 22:20:32 GMT References: <19522@hydra.gatech.EDU> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 22 In article <19522@hydra.gatech.EDU> mb33@prism.gatech.EDU (Martin Brooks) writes: : : In one of my KILL files, I have a couple of search commands to flag : articles that were posted locally: : : /string1/h:= : /srting2/h:= : : Is there a way to search for both strings with one command. I *did* : RTFM but either it didn't mention anything or I overlooked it. /string1\|string2/h:= If you know the header line, you can also get fancy with %(), like this /^/%(%[from]!=string1\|string2?j:=) This lists the article if the From: line contains string1 or string2, otherwise it junks the article. Larry Wall lwall@jpl-devvax.jpl.nasa.gov