Skip to content

Instantly share code, notes, and snippets.

View DominicBM's full-sized avatar

Dominic Byrd-McDevitt DominicBM

View GitHub Profile
@DominicBM
DominicBM / combine.py
Last active November 20, 2023 04:59 — forked from clingerman/combine.py
combine multiple xml files into one (Python 2.7)
import os, re
file = 'm384-import-11.xml'
filenames = ['M384_0201_output.xml','M384_0202_output.xml','M384_0203_output.xml','M384_0204_output.xml','M384_0205_output.xml','M384_0206_output.xml','M384_0207_output.xml','M384_0208_output.xml','M384_0209_output.xml','M384_0210_output.xml','M384_0211_output.xml','M384_0212_output.xml','M384_0213_output.xml','M384_0214_output.xml','M384_0215_output.xml','M384_0216_output.xml','M384_0217_output.xml','M384_0218_output.xml','M384_0219_output.xml','M384_0220_output.xml']
counter = 2
outputfile = file
for fname in filenames:
in_size = (os.stat(fname).st_size / 1000000)