Back

shell脚本读取PDB文件中的长宽高

1
2
3
4
5
6
7
8
9
#!/bin/sh

#作者:GROMACS中文组群: 广药-阿福
#x轴
grep ^ATOM $1 | awk ‘{print $7}| sort -n |sed -n ‘1p;$p#y轴
grep ^ATOM $1 | awk ‘{print $8}| sort -n |sed -n ‘1p;$p#z轴
grep ^ATOM $1 | awk ‘{print $9}| sort -n |sed -n ‘1p;$p
Licensed under CC BY-NC-SA 4.0