Re: Help with awk

From: Ericsson User (koko_loko_0_at_yahoo.co.uk)
Date: 10/07/05


Date: Fri, 7 Oct 2005 22:01:34 +0200

In article <1128711206.860195.51250@z14g2000cwz.googlegroups.com>,
w_a_x_man@yahoo.com says...
>
>
> BEGIN { FS = OFS = "|" }
> FILENAME==ARGV[1] { type[NR] = tolower( $1 ) ; next }
> { for (i=1; i<=NF; i++)
> if ( type[i] ~ /^(int|numeric)$/ )
> $i = int( $i )
> print
> }
First, thx for helping.

Issued this one (as awkfile.awk):

awk -f awkfile.awk File1 File2

but the output was unchanged File2.
Do you want me to send files?

BR/
Kokolo