Save the results of a fortran loop in a text file
Hi,
I am trying to store the results of my code to a separate text file.But the problem is, as my results comes from a loop, my text file shows only the last result, not all of them.Like if the loop runs 5 time the text file shows the result for the 5th step.But i need to store all of them (1 to 5).Can I use awk to print the output field and store to another file and creat a new line so that the next output field goes to a new line?(just an idea, dont know).Could anyone help me? I am very new in linux as well as fortran, any help is greatly appreciated.Thank you
#!/bin/basth
for (( i=1; i<=5; i++))
do
./file.exe > output.txt
done
|