Instructions
Install the CCP4 software on your computer.
Open the CCP4 software package using the command line window of the operating system.
Save the following PERL script as a file named cnshkl.pl:
#!/usr/bin/perl
until(($_=<>)=~/\binde/i){}
do{s/\b[a-z]\S*\s*//gi;print}while(<>);
Type "cnshkl.pl in.hkl > out.hkl" at the command line -- "in" should be replaced by the file name you wish to clean up and "out" with the name you want to give the result file. Press "Return" to run the Perl script.
Type "f2mtz hklin foo.hkl hklout foo.mtz" at the command line, then press "Return" -- "foo" should be replaced with the input file name, i.e. the result of the previous step.