Hi everyone. Once again, I ask you experts for help.
I have three files: config.orig, config.add config.del
config.orig has its contents like
config.add has its contents like
config.del has its contents like
the desired outcome needs to be the same config.orig filename having its
configkey1 default //overrided by config.add
configkey4 off //left alone
configkey5 default //left alone
configkey6 default //added by config.add
I am to perform two tasks here
1) merge config.orig and config.add.
* here like configkey1 above, content in config.add should override
2) subtract config.del from the outcome of 1)
* but config.del does not include the configkey value
How should I go about this with shell script? Please help.