Shell script that reads from parameters file
Ok here is what I am trying to do but I am not sure exactly how to do it. I want to write a shell script that will replace certain values in a file with environment specific information that it pulls from a parameters file. The paramaters file looks like the following...
Now the shell script I need to write should take two parameters when you call it
./myscript.sh <file_location> <dev|int|qa1|qa2>
So if I call the script with the second parameter of "int" it will read all of the parameters for INT so I can use them with sed to replace lines of a config file.