comparison PLIDflow/scripts/separateChain.sh @ 2:afd5b5ffc38f draft

Uploaded
author bitlab
date Tue, 14 Jan 2020 07:52:48 -0500
parents 6fcfa4756040
children
comparison
equal deleted inserted replaced
1:eda62adfc858 2:afd5b5ffc38f
1 #!/bin/bash
2
3 # Arguments
4 # $1 = pdb
5
6 grep "ATOM\|HETATM" $1 | awk '{ if(length($5)==1) updateName=$5; if($1 == "ATOM" || $1 == "HETATM"){ print $0 > "chain"updateName".pdb"; }}' ;
7 for i in chain* ; do echo "TER" >> $i ; echo "END" >> $i ; done