add facility script to replace file content, which can be used for benchmarks which need to modify codes and run