From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: boyd@sdgm.net To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] awk bug Date: Mon, 15 Sep 2003 05:53:20 -0400 Topicbox-Message-UUID: 36f5f54a-eacc-11e9-9e20-41e7f4b1d025 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