I have values in txt file
cc.cis.jms.Simulator.CAAMS=CAAM270:CAAM050
Now i want to replace the below value as
cc.cis.jms.Simulator.CAAMS=CAAM270:CAAM050:CAAM250
I tried this:
SIMULATOR='CAAM270:CAAM050'
ADDEDCAAM="$SIMULATOR:CAAM250"
SACTUALVALUE='cc.cis.jms.Simulator.CAAMS='$SIMULATOR
SREPLACEVALUE='cc.cis.jms.Simulator.CAAMS='$ADDEDCAAM
sed -i 's|$SACTUALVALUE|$SREPLACEVALUE|g' $FILE > /tmp/Bridger/CC_CISConfig.properties
CC_CISConfig.properties file got created in /tmp/Bridger/ path but with no content on it.
I also tried:
sed -i 's|$SACTUALVALUE|$SREPLACEVALUE|g' $FILE > /tmp/Bridger/CC_CISConfig.properties.txt
But didnt work out. Kindly help