Eric_T
July 11th, 2006, 09:12 AM
Hello
I have a fortran program that reads an input file and then does a bunch of computations based on that file. What I want to do is to write a script to change some of the variables, say run the program 10 times and each time increment the variable input_velocity in file input.txt by 10. I know how to make all the parts except how to change that one line. I know several ways of finding it, like grep input_velocity input.txt and awk '/input_velocity/' input.txt, but that doesn't help me much.. ](*,)
Could anyone give me some tips?
Thanks!
I have a fortran program that reads an input file and then does a bunch of computations based on that file. What I want to do is to write a script to change some of the variables, say run the program 10 times and each time increment the variable input_velocity in file input.txt by 10. I know how to make all the parts except how to change that one line. I know several ways of finding it, like grep input_velocity input.txt and awk '/input_velocity/' input.txt, but that doesn't help me much.. ](*,)
Could anyone give me some tips?
Thanks!