I have a file call config.txt
which contains something like this.
[MS-SQL]
DRIVER : FreeTDS
SERVER : 138.23.21.45
What I need to do is, Whatever the string values which contains after SERVER :
need be replaced with a content in a shell variable like $SERVER_IP
.
Final config.ini
need to be like this.
(consider bash shell variable consist some this like $SERVER_IP=192.168.5.3
)
[MS-SQL]
DRIVER : FreeTDS
SERVER : 192.168.5.3