Hi
I want to change a especific position into register.
In my programm I have to use four lines to do this.
part_one=substr($0,1,10)
part_two="2"
part_three=substr($0,12)
$0=parte1""parte3""parte4
I only want to change the character number 11 into the register
is it possible to do this using sub funtion.??
sub(regex,replacement,target)
sub(/3/,"2",substr($0,11,1)) I used this and it wasnot possible.
Thanks
malpa
I want to change a especific position into register.
In my programm I have to use four lines to do this.
part_one=substr($0,1,10)
part_two="2"
part_three=substr($0,12)
$0=parte1""parte3""parte4
I only want to change the character number 11 into the register
is it possible to do this using sub funtion.??
sub(regex,replacement,target)
sub(/3/,"2",substr($0,11,1)) I used this and it wasnot possible.
Thanks
malpa