I have a properties file that looks like this:
I need to change
PASS with variable values passed to shell script. I cannot use
sed since that will work fine the first time to replace USERNAME and PASS with "values" but once they are replaced, sed will not find the variable names in the file the second time the script runs and thus an issue.
How can this be handled?