Changes

From CCP4 wiki
Jump to navigationJump to search
no edit summary
Line 24: Line 24:     
'''done < /path/to/file.pdb'''
 
'''done < /path/to/file.pdb'''
 +
 +
 +
== Awk script ==
 +
 +
Should be called as
 +
 +
awk -f script.awk < models.pdb
 +
 +
'''BEGIN {file = 0; filename = "model_"  file ".pdb"}'''
 +
 +
'''/ENDMDL/ {getline; file ++; filename = "model_" file ".pdb"}'''
 +
 +
'''{print $0 > filename}'''
     
67

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu