9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] awk bug
@ 2003-09-15  9:53 boyd
  2003-09-15 10:04 ` Geoff Collyer
  2003-09-15 11:44 ` Aharon Robbins
  0 siblings, 2 replies; 6+ messages in thread
From: boyd @ 2003-09-15  9:53 UTC (permalink / raw)
  To: 9fans

brahma% echo a b c | awk 'BEGIN { f[0] = 2 }
		{ print $f[0] }
		'
awk: syntax error at line 2
 context is
		{ print >>>  $f[ <<<
awk: illegal statement at line 2
brahma% echo a b c | awk '{ print $2 }'
b


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] awk bug
@ 2010-04-19 16:33 erik quanstrom
  0 siblings, 0 replies; 6+ messages in thread
From: erik quanstrom @ 2010-04-19 16:33 UTC (permalink / raw)
  To: 9fans

sorry i left out a part:

minooka; awk 'BEGIN {OFMT="%.0f"; print 17.23}'
17
minooka; /n/sources/plan9/386/bin/awk 'BEGIN {OFMT="%.0f"; print 17.23}'
17.23

- erik



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-19 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15  9:53 [9fans] awk bug boyd
2003-09-15 10:04 ` Geoff Collyer
2003-09-15 10:14   ` boyd, rounin
2003-09-15 11:44 ` Aharon Robbins
2003-09-15 20:03   ` boyd, rounin
2010-04-19 16:33 erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).