RE: Concatenating log files

From: Bennion, Brian (bennion1_at_llnl.gov)
Date: Wed Sep 06 2017 - 11:50:53 CDT

Google is your friend here. Your question isn’t specific to NAMD as you are just looking to parse text.
brian

From: owner-namd-l_at_ks.uiuc.edu [mailto:owner-namd-l_at_ks.uiuc.edu] On Behalf Of Roshan Shrestha
Sent: Wednesday, September 06, 2017 9:39 AM
To: namd-l_at_ks.uiuc.edu; Vermaas, Joshua <Joshua.Vermaas_at_nrel.gov>
Subject: Re: namd-l: Concatenating log files

Thanks Josh, it worked. In hindsight, I should have tried with cat command myself, but I thought concatenating the two log files would append the header information as well. Also, Is there any way to extract the individual informations like Pressure, Energy, Temperature etc from log file so that I can save them in either .dat format or any other formats to plot it in my favorite plotting tools.


On Wed, Sep 6, 2017 at 9:59 PM, Vermaas, Joshua <Joshua.Vermaas_at_nrel.gov<mailto:Joshua.Vermaas_at_nrel.gov>> wrote:
Wouldn't something like "cat log1.log log2.log > concatenated.log" work? Its been a while since I've used NAMD plot, but I think it ignores header-like things and only looks for lines that start with "ENERGY"

-Josh

On 09/06/2017 10:13 AM, Roshan Shrestha wrote:
Dear all,
             I extended the previous simulation in NAMD, so now I have two log files for the previous and current MD simulation. Since I use NAMD plot to plot my data, is there any way to concatenate these two log files into one log file.

Thanks

--
Roshan Shrestha
M.Sc (Physics)
Central Department of Physics, Tribhuvan University
Kathmandu, Nepal







--
Roshan Shrestha
M.Sc (Physics)
Central Department of Physics, Tribhuvan University
Kathmandu, Nepal



This archive was generated by hypermail 2.1.6 : Sun Dec 31 2017 - 23:21:38 CST