ok, so this will do most of it. just need to remove defaults
and stackup
sections manually, I’m too lazy/bad at regex to figure out those.
cat nightly.kicad_pcb | sed -r "s/\(tstamp [^\)]*\)//" | sed -r "s/\(pinfunction [^\)]*\)//" > stable.kicad_pcb