Changes

Line 9: Line 9:     
   grep -n 'MODEL\|ENDMDL' models.pdb | cut -d: -f 1 | \
 
   grep -n 'MODEL\|ENDMDL' models.pdb | cut -d: -f 1 | \
   awk '{if(NR%2) printf "sed -n %d,",$1+1; else printf "%dp > model_%03d.pdb\n", $1-1,NR/2;}' |  bash -sf
+
   awk '{if(NR%2) printf "sed -n %d,",$1+1; else printf "%dp models.pdb > model_%03d.pdb\n", $1-1,NR/2;}' |  bash -sf
    
== Bash script ==
 
== Bash script ==
67

edits