Use s// and m/// to identify and change parts of a line.
Use an "if" statement to determine if you are looking for the TER record or have passed it.
The file I/O is explained in any intro, but you might be interested in the -i command line option.
In reply to Re: change x coordinate in pdb
by John M. Dlugosz
in thread change x coordinate in pdb
by kanika
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |