Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!uunet.UU.NET!sef From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.std.unix Subject: awk syntax Message-ID: <1991May13.222855.9433@uunet.uu.net> Date: 13 May 91 21:59:16 GMT Sender: usenet@uunet.uu.net (UseNet News) Organization: UUNET Communications Services Lines: 14 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 <1991May11.224436.25175@uunet.uu.net> arnold@audiofax.com writes: > (How do I know that awk 'BEGIN { print "hi" } ; END { print "bye" }' > is legal while awk 'BEGIN { print "hi" } END { print "bye" }' > isn't? Presenting a grammar for the language is almost a necessity...) It isn't? I use the latter all the time! -- Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180; Sugar Land, TX 77487-5012; `-_-' "Have you hugged your wolf, today?" Volume-Number: Volume 23, Number 66