Help needed for Shell Script.....

Hello Friends,

Can you pls advice me on the following requirement:

What we'd like to achieve is the following:

  • having a password.properties file which contains some passwords, e.g. BOT_PASSWORD=dog.name
  • in the configuration file, insert as the password value something like @@BOT_PASSWORD@@, e.g.
    bot.password=@@BOT_PASSWORD@@

The script should be able to read parse the configuration file, and substitute any string surrounded by @@ @@ with the corresponding properrty in password.properties

It should substitute the value in place (e.g. writing to the same file it's reading),and should not corrupt any binary files.

Cheers,
Pulkit