aboutsummaryrefslogtreecommitdiff
path: root/scripts/extract-geom
blob: 13f7ac2e4476706f01960638c088e00d0ead2255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()