I am new to shell scripting. And trying to create a .ini file with following details. End result of .ini file:
[dev]
JDBC_URL = jdbc:h2:mem:mem_test;MODE=Oracle
JDBC_USERNAME =
JDBC_PASSWORD =
SERVICE_ENDPOINT = http://localhost:8080/Central/api/AppService
[qa]
JDBC_URL = jdbc:oracle:thin:@qa-oracle:1521:qa
JDBC_USERNAME = qauser
JDBC_PASSWORD = qapass
SERVICE_ENDPOINT = http://qa-services/Central/api/AppService
[prod]
JDBC_URL = jdbc:oracle:thin:@prod-oracle:1521:prod
JDBC_USERNAME = scott
JDBC_PASSWORD = tiger
SERVICE_ENDPOINT = http://prod-services/Central/api/AppService
How to start with creating .ini file using bash. You can also suggest with some example, if their is some other way in bash using template to do same.