this is the part of the file that needs to be modified:
SDEF POS=0 0 7.631 par=2 ERG=0.88
m1 013000.01p 1 COND=1
m2 029000.01p 1 COND=1
m3 032000.01p 1 COND=1
m4 007000.01p -0.8 GAS=1
008000.01p -0.2 GAS=1
F18:P 2
FC18
E18 0 0.86 0.89
i need the number after ERG to be modified each time the file is processed, at the same time the 2 valued of E18 should be modified as
J-0.02 J+0.01 where J is the modified value in ERG.
is absolutely necessary that the spaces in E18 are preserved since if the number of spaces is changed the program will refuse to process the file.
Actually what i mainly need is this:
start the script, the script put the first value and process the file, once the program ends, the script put the second value and process..
until all the values are processed..
since the program won't overwrite the output files but rather rename them is not a big deal if the script doesn't move to another location, and also will make the script easier..