Split a field in awk script

Hi all,

I have a field in the line, let's say argument $6, which is in the format 00.00
If i want to split the field to get rid of the "." in between of the amount, how can i do that i awk script?
I have it like this

split($6,a,".")

but it will get rid of the last 2 digits after the dot. For example, if i have 20.25 and i split like that, the result I get is 20 but I want the result to be 2025

Thanks

CT

$6 ~ /[0-9][0-9]*.[0-9][0-9]*/ {gsub("[.]","",$6)}
1

the split function won't work ?
What is the 1 stand for?

Thanks

CT

yes, it will - but why bother if the only thing you need is to remove the "."?

split($6, a, "."); $6 = a[1] a[2]

shorthand for "print"

Thanks vgersh00!
The split works

CT