I have a file named variables.f90
, having many lines defining different variables, as follows ::
integer::n_monomer=6800
real*8::rx=5.0d0
#... randomly integer and real numbers defined
real*8::mu_nano=8.0d0
.......
......
and I dont know what will be the value of mu_nano
, it can be any real number.
Now I want to modify the above statement such that, its value is incremented by 1 using bash script as follows ::
real*8::mu_nano=9.0d0