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