I am trying to read a value from my config file and substituting it in my other file named test.env.
config file has key and value pair as below:
SERVER_NAME=testserver
HOSTNAME=localhost
test.env file
echo "server name is ${SERVER_NAME}"
echo "Server is running on host ${HOSTNAME}"
Would it be possible to automatically assign a variable in test.env file.
Expected output will be as follows:
echo "server name is testserver"
echo "Server is running on host localhost"