Re: Help with awk
From: Ericsson User (koko_loko_0_at_yahoo.co.uk)
Date: 10/07/05
- Next message: Ericsson User: "Re: Help with awk"
- Previous message: zeekko_at_gmail.com: "Bash script adding time"
- In reply to: William James: "Re: Help with awk"
- Next in thread: kokolo: "Re: Help with awk"
- Reply: kokolo: "Re: Help with awk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ericsson User: "Re: Help with awk"
- Previous message: zeekko_at_gmail.com: "Bash script adding time"
- In reply to: William James: "Re: Help with awk"
- Next in thread: kokolo: "Re: Help with awk"
- Reply: kokolo: "Re: Help with awk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]