[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ccp4bb]: re-arranging column order?
*** For details on how to be removed from this list visit the ***
*** CCP4 home page http://www.ccp4.ac.uk ***
awk is perfect for that:
i.e. say you have:
Col1 Col2 Col3
H K L
at the shell prompt:
awk '{print $3 $2 $1}' < HKL.in
would print
L K H
for additional formating, see 'man awk'
best,
jp
On Sun, 24 Nov 2002, Fred Berkovitch wrote:
> *** For details on how to be removed from this list visit the ***
> *** CCP4 home page http://www.ccp4.ac.uk ***
>
> Can someone please explain how I would use mtzutils (or any other program)
> to rearrange my columns? For instance, if column 1=H 2=K 3=L how could I
> rearrange them so that 1=L 2=K 3=H? If anyone has a script that does a
> similar re-arrangement, would you mind posting it? Thank you for your help.
>
> -Fred
>