I am working on a script to read variables from different log files using a grep
command and after reading the result, I want to add that variable into a txt file in front a predefixed text.
This is what i am doing
echo "whats your environmentprefix"
based on userinput, i am doing this
read $environmentprefix
Now this $environmentprefix
value needs to be replaced in a config.txt
file
where text is present as input.queue=_mq.test
I want to add this variable in front of this , so that it looks like
input.queue=$environmentprefix_mq.test
I have tried all sed commands but unable to get the desired output