Advertisement
ProzacR

i atskirus pdb

Jul 14th, 2011
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3.  
  4. for pdbfile in out_pdbqt/*.pdb; do
  5. a=`grep ENDMDL $pdbfile | wc -l`
  6. b=`expr $a - 2`
  7. csplit -k -s -n 3 -f ${pdbfile%pdb} $pdbfile '/^ENDMDL/+1' '{'$b'}'
  8. #foreach f ( $file.[0-9][0-9][0-9] )
  9. #    mv $f $f.pdb
  10. #end
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement