Of course I have to use the same code, just to add for the val1= (ARC) the simbo %.1f ... somewhere ... and for the val2= (IDE) the tags [0-9]\/[0-9] ???
Are you just searching on-line for solutions to your problems? Or, have you read the awk man page on your system and tried using it to construct code that meets your requirements?
Why would we use the above Starting code which is looking for strings that contain GT= and AF= followed by one or more decimal digits and has mismatched double-quotes in the print statement instead of starting with the code Ravinder suggested in post #2 that will give you output close to what you want instead of reporting a syntax error and printing nothing?
Working from Ravinder's code, extending the match() extended regular expressions to accept periods or slashes in addition to decimal digits and using sprintf() to round the numbers after ARC= to 1 decimal place, one might want to try something more like: