Advertisement
ProzacR

Untitled

Jul 15th, 2011
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/sh
  2. #VR
  3. #iskaido ir sutvarko dokinimo rezultatu pdb
  4.  
  5. for pdbfile in out_pdbqt/*.pdb; do
  6. a=`grep ENDMDL $pdbfile | wc -l`
  7. b=`expr $a - 2`
  8. csplit -k -s -n 3 -f ${pdbfile%pdb} $pdbfile '/^ENDMDL/+1' '{'$b'}'
  9. done
  10.  
  11. for old in out_pdbqt/*.00?; do
  12. cat $old | grep AT > $old.x
  13. done
  14.  
  15. for old in *.x; do cp $old `basename $old .x`.pdb; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement