diff options
author | Thomas White <taw@physics.org> | 2018-06-29 12:49:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-06-29 12:49:39 +0200 |
commit | 4fb276ffc2058eb68dc8dff3526098450c30fd55 (patch) | |
tree | 5ba62b75eb780041be8feda8e3289a2a4104a3b7 /scripts | |
parent | b6e51bc50ca53d23527a571c474507f7095689f1 (diff) |
Add scripts/extract-geom
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/extract-geom | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/extract-geom b/scripts/extract-geom new file mode 100755 index 00000000..13f7ac2e --- /dev/null +++ b/scripts/extract-geom @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +import sys + +with open(sys.argv[1]) as f: + s = "" + while "Begin geometry file" not in s: + s = f.readline() + s = f.readline() + while "End geometry file" not in s: + print(s), + s = f.readline() + |