Skip to content

Instantly share code, notes, and snippets.

@psftw
Created July 24, 2013 02:40
Show Gist options
  • Save psftw/6067712 to your computer and use it in GitHub Desktop.
Save psftw/6067712 to your computer and use it in GitHub Desktop.
from glob import glob
bullshit = "<hudson.plugins.statusmonitor.MonitorPublisher/>"
for cfile in glob("jobs/*/config.xml"):
ftxt = open(cfile).read()
ftxt = ftxt.replace(bullshit, "\n")
f = open(cfile, 'w')
f.write(ftxt)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment