[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ccp4bb]: responses to resetting atom numbers
*** For details on how to be removed from this list visit the ***
*** CCP4 home page http://www.ccp4.ac.uk ***
On Fri, 7 Jun 2002, Tadashi NAKAI wrote:
> *** For details on how to be removed from this list visit the ***
> *** CCP4 home page http://www.ccp4.ac.uk ***
>
> There is another simple way to reset atom numbers like this:
>
> awk '{if($0~/^ATOM/||$0~/^HETATM/){n++;printf("%6s%5d%s\n",\
> substr($0,1,6),n,substr($0,12))}else{print}}' input.pdb > output.pdb
Ah, the power of Unix. However, to call it "another SIMPLE way..." must have
raised some eyebrows, even for those before the GUI generation.
Bart
===============================================================================
Dept. of Medical Microbiology & Immunology
University of Alberta
1-15 Medical Sciences Building
Edmonton, Alberta, T6G 2H7, Canada
phone: 1-780-492-0042
fax: 1-780-492-7521
===============================================================================