#!/usr/bin/node const fs = require( "fs" ); const smallconf = fs.readFileSync( "./big-templ.xml" ); const conf = fs.readFileSync( "./rc-templ.xml" ).toString(); fs.writeFileSync( "./rc.xml", conf.replace( "", smallconf ) );