awk question (printing to the file)
Wiktor Niesiobedzki
bsd at w.evip.pl
Fri May 14 06:36:11 PDT 2004
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
More information about the freebsd-current
mailing list