have a file call config.php
which contains something like this.
<?php
$main="dev.digin.io";
What I need to do is, Whatever the string values which contain after $main=
need be replaced with a content in a shell variable like $MainDomain
.
Final config.php need to be like this. (consider bash shell variable consist some this like $MainDomain=prod.mail.com )
<?php
$main="prod.mail.com";