Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!uunet.UU.NET!sef From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.std.unix Subject: Re: awk syntax Message-ID: <1991May15.165824.6896@uunet.uu.net> Date: 15 May 91 14:16:01 GMT References: <1991May13.222855.9433@uunet.uu.net> <1991May14.185737.15746@uunet.uu.net> Sender: usenet@uunet.uu.net (UseNet News) Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 24 Approved: sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix) Originator: sef@uunet.UU.NET Nntp-Posting-Host: uunet.uu.net X-Submissions: std-unix@uunet.uu.net Submitted-by: peter@ficc.ferranti.com (Peter da Silva) In article <1991May14.185737.15746@uunet.uu.net> arnold@audiofax.com writes: > One of the things that happened when new awk was first realeased was a lot > of cleaning up and consistencizing (if I may coin a term) of the awk language. I don't see how that makes things any more consistent. If you look at the grammer there's no ambiguity that needs to be resolved by adding that semicolon. Does anyone have an idea what the reasoning behind this was? To me, it adds confusion by treating a block as a statement. Oh, and my V.3.2 system has no problem with that: % ls -l | awk 'NF==9 { h[$3] += $5 } END {for(i in h) print i,h[i]}' root 7985 peter 731662 (from a script I have lying around) -- Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180; Sugar Land, TX 77487-5012; `-_-' "Have you debugged your wolf, today?" Volume-Number: Volume 23, Number 71