aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-11 11:28:50 +0200
committerThomas White <taw@physics.org>2018-05-11 11:28:50 +0200
commit9180b2820c83550d4faedf84b93fba2c75c55891 (patch)
tree90ac4d120b9e10b2a66969d0d9eb0a97f8bcf0b7 /scripts
parent1f0987de8de5a1594623ab5d9fa24f1afe74dc93 (diff)
Much better way of stripping the audit information out of hkl files
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-mtz5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/create-mtz b/scripts/create-mtz
index 62d94405..add9f093 100755
--- a/scripts/create-mtz
+++ b/scripts/create-mtz
@@ -22,10 +22,7 @@ if [ -e $OUTFILE ]; then
fi
fi
-ex -c '/End of reflections/
-.,$d
-w create-mtz.temp.hkl
-q!' $1
+sed -n '/End\ of\ reflections/q;p' $1 > create-mtz.temp.hkl
echo "Running 'f2mtz'..."
f2mtz HKLIN create-mtz.temp.hkl HKLOUT $OUTFILE > out.html << EOF