unres paper list update
[django_unres.git] / files / cluster2allatom.sh
index 639ac2a..6e79e4d 100755 (executable)
@@ -12,7 +12,7 @@ headval=`echo $i "*" $onestruc|bc -l`
 head -n $headval tmp.pdb | tail -n $onestruc >act.pdb
 
 rm -f act_file*
-cat act.pdb | tr '\n' '\r' | sed -e 's/TER\rTER/TERTER/' | tr '\r' '\n' \
+cat act.pdb | tr '\n' '\r' | sed -e 's/TER\rTER/TERTER/g' | tr '\r' '\n' \
  | awk 'BEGIN{f=1}/TERTER/{close("act_file"f);f++}{ if ($0!="TERTER") print $0 > "act_file"f}'
 
  for f in act_file*