Does this have to be done in bash?
You are calling awk in order to extract the numbers already. I suggest you write an awk script to do this because it would be really easy in awk and probably more complicated in bash!
You already have the rules to find the lines of interest from awk, so just add the change of number to those lines. A quick example which I haven't tested and probably contains some basic mistakes:
Code:
#!/bin/awk -f
/emin/ {$2=10.00}
/emax/ {$2=30.00}
{print}
I appologise if the point of your post was to learn bash and this isn't what you want.
EDIT:
Or are you trying to read the new values from another file? It might be best if you provide a larger example of the format of your input files and expected output.