CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to Merge/Join Log Files? (https://www.cfd-online.com/Forums/openfoam-post-processing/192931-how-merge-join-log-files.html)

LThomes September 13, 2017 15:32

How to Merge/Join Log Files?
 
Hello foamers,
During my simulation, I had to pause and resume it 2 times, therefore, I got 3 log files:
Code:

mpirun -np 4 pimpleFoam -parallel > log
mpirun -np 4 pimpleFoam -parallel > log2
mpirun -np 4 pimpleFoam -parallel > log3

Is there anyway I could merge this files into one?

Thanks in advance.

Dipsomaniac September 13, 2017 17:55

Hi LThomas

Use the cat function in terminal

Code:

cat log log2 log3 > log_combined
Regards,
Brian

LThomes September 14, 2017 14:03

Thank you!


All times are GMT -4. The time now is 22:33.