Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!oddjob!gargoyle!ihnp4!arizona!lm From: lm@arizona.edu (Larry McVoy) Newsgroups: comp.unix.questions Subject: Re: AWK Bug? Message-ID: <4093@megaron.arizona.edu> Date: 2 Mar 88 00:08:11 GMT References: <729@senilix.liu.se> Reply-To: lm@megaron.arizona.edu.UUCP (Larry McVoy) Organization: University of Arizona, Tucson Lines: 35 Keywords: awk In article <729@senilix.liu.se> kjepo@senilix.liu.se (Kjell Post) writes: >For some reason, inserting 'foo' after the "/" did the trick: > > grep -h "^\.@tag" sample | awk ' > { print "s/" $3 "/" foo ++value[$2] "/g" } Oh yeah, I remember this one. One of the authors was feeling playful and added a variable "bar" to the source code of awk. The print routine has this line . Apparently, he liked the variable foo. Really. :-) :-) :-) -- Larry McVoy lm@arizona.edu or ...!{uwvax,sun}!arizona.edu!lm