Re: [AMBER] Regarding the use of sed command to replace water

From: Corum, Katharine W <katharine-corum.uiowa.edu>
Date: Wed, 31 Aug 2016 19:57:43 +0000

Hi, I use a sed command to do this as well. I use:


sed -i "s/HOH/TIP3P/g" filename


Hope this helps!

Katie

________________________________
From: Budhathoki, Dipesh <budhdipe.pharmacy.isu.edu>
Sent: Wednesday, August 31, 2016 2:52:37 PM
To: AMBER Mailing List
Subject: [AMBER] Regarding the use of sed command to replace water

Dear Ambers,
I am new to the use of sed editor and learning how to use it effectively.I
am trying to replace HOH with TIP3P in the PDB flle without affecting other
columns (ie. without affecting format of the pdb). But I am finding it
difficult to keep the format as it is. The sed command I am using is as
follows:

sed 's/HOH/TIP3P/g' filename
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Aug 31 2016 - 13:00:05 PDT
Custom Search