Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!yale!cs.yale.edu From: Duchier-Denys@cs.yale.edu (Denys Duchier) Newsgroups: comp.sys.hp Subject: Re: 9000/300 6.5 bug in awk Message-ID: <3924@cs.yale.edu> Date: 30 Oct 89 15:43:23 GMT References: <13314@boulder.Colorado.EDU> Sender: news@cs.yale.edu Reply-To: Duchier-Denys@cs.yale.edu (Denys Duchier) Distribution: comp Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 19 In-reply-to: barbour@boulder.Colorado.EDU (BARBOUR JIM) In article <13314@boulder.Colorado.EDU>, barbour@boulder (BARBOUR JIM) writes: > I ran across this bug in awk. The manual says that > > % awk /start/, /stop/ > > should print all lines between a line start and a line stop. > > However, awk bails out with a syntax error. You are supposed to provide the awk program as a single argument. For instance you could put quotes around it: awk '/start/, /stop/' filename or simply remove the space after the comma: awk /start/,/stop/ filename --Denys