writing script to purge lines containing a string from file, quick write of overall structure, untested