COURSE of the MONTH

Use BASH script to parse between two points in a file and out to two files

Boss has an odd one for me today and for some reason I just can't get my head around such a simple request.

I have a requirement for a single file which contains the contents of two different config files put together and the script part at the start. Basically an analyst would fill out all the params and then run the file. The result would be two config files would be output from the script. I've attached a sample below.

So the file would basically 'parse' itself into two seperate files (called whatever) between the two pointers.