Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!sundc!rlgvax!dennis From: dennis@rlgvax.UUCP (Dennis Bednar) Newsgroups: news.misc,comp.mail.misc Subject: Re: Two perhaps-useful awk scripts for news and mail Message-ID: <314@rlgvax.UUCP> Date: Wed, 7-Jan-87 15:12:19 EST Article-I.D.: rlgvax.314 Posted: Wed Jan 7 15:12:19 1987 Date-Received: Wed, 7-Jan-87 23:48:15 EST References: <2731@j.cc.purdue.edu> Organization: Computer Consoles Inc, Reston VA Lines: 40 Keywords: news, mail, logs, summary Summary: News.awkfile posted causes awk to drop a core on cci632 Xref: mnetor news.misc:144 comp.mail.misc:24 In article <2731@j.cc.purdue.edu>, rsk@j.cc.purdue.edu (Same as it ever Wombat) writes: > ( two awk scripts, one for mail, and one for news ) I tried running the news awkfile and it dropped a core. Below is what happened (output from script(1)). I am not an awk expert. Does anybody have any ideas, or can anybody else reproduce the errors on a different machine? We are running SVr2/4.2 hybrid, and I am guessing that its the SVr2 awk we are running. Script started on Wed Jan 7 15:01:36 1987 $ cat /tmp/news.awkfile BEGIN {artcount = 0} /.* received */ { ng[] = ; subja[] = 0; subjb[] = 1; subjc[] = 2; subjd[] = 3; subje[] = 4; subjf[] = 5; subjg[] = 6; subjh[] = 7; subji[] = 8; subjj[] = 9; artcount++ ; artid = } /.* from */ { from[artid] = } END { for ( i in ng ) { printf("%s\t%s\t%s %s %s %s %s %s %s %s %s %s\n",from[i],ng[i],subja[i],subjb[i],subjc[i],subjd[i],subje[i],subjf[i],subjg[i],subjh[i],subji[i],subjj[i]) } } $ awk -f /tmp/news.awkfile < /usr/lib/news/log awk: syntax error near line 2 awk: illegal statement near line 2 awk: syntax error near line 2 awk: illegal statement near line 2 Illegal instruction - core dumped $ adb /bin/awk core No symbol table in file $c ?(5b,5b) at 5128 ?() at 697 ?(1,bfffdbf0,bfffdbf8) at 238a $q $ script done on Wed Jan 7 15:03:03 1987 -- -Dennis Bednar {decvax,ihnp4,harpo,allegra}!seismo!rlgvax!dennis UUCP