[comp.sys.hp] 9000/300 6.5 bug in awk

Duchier-Denys@cs.yale.edu (Denys Duchier) (10/30/89)

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