Date: Fri, 14 May 2004 15:36:04 +0200 From: Wiktor Niesiobedzki <bsd@w.evip.pl> To: current@freebsd.org Subject: awk question (printing to the file) Message-ID: <20040514133604.GA74576@mail.evip.pl>
next in thread | raw e-mail | index | archive | help
Hi, The GNU awk, that is present in FreeBSD-4 branch accepts following syntax: $ echo foo,bar | awk -F ',' '{print "Foobar: " $1 > $2}' $ echo foo,bar | awk -F ',' '{print "Foobar: " $1 > $2 ".foo"}' While the awk resent in FreeBSD-Current branch accets only the first line, while by second comand bails out with: awk: syntax error at source line 1 context is {print "Foobar: " $1 > $2 >>> ".foo" <<< awk: illegal statement at source line 1 Is this intended behaviour? Cheers, Wiktor Niesiobedzki
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040514133604.GA74576>