How to change only certain lines within a config.js without redeploying the whole file?

Dear All,

 

Is there any commonly used tool / utility which can be somehow run from a package to alter (e.g. config.js) instead of redeploying the whole file? I have some sort of Win CE alternative to sed / awk on my mind.

 

Regards,

Balazs Vadasz