Hi all!
So I'm a beginner and teaching myself! I am running a scientific model, the main code to which is beyond me(!) and installed on my computer. I have some 'instruction' code which I run to tell the model which variables and options I want to use. When I run this code, I get a series of output files in the current working directory which are products of the scientific model, alongside the large output in the terminal, which I am currently saving to a file using &> terminal_output &
I now want to run the model multiple times for multiple combinations of different variables. To do this I am putting the 'instruction' code in a series of nested for loops. However I want to get the equivalent of the terminal output into a new file for each loop. So for each loop I will have a new file containing the terminal output just for that run over the loops. I hope that makes sense...
Any help would be much appreciated! Thanks!
So I'm a beginner and teaching myself! I am running a scientific model, the main code to which is beyond me(!) and installed on my computer. I have some 'instruction' code which I run to tell the model which variables and options I want to use. When I run this code, I get a series of output files in the current working directory which are products of the scientific model, alongside the large output in the terminal, which I am currently saving to a file using &> terminal_output &
I now want to run the model multiple times for multiple combinations of different variables. To do this I am putting the 'instruction' code in a series of nested for loops. However I want to get the equivalent of the terminal output into a new file for each loop. So for each loop I will have a new file containing the terminal output just for that run over the loops. I hope that makes sense...
Any help would be much appreciated! Thanks!