I have an environment variable LIB_HOME=/etc/temp In one of the config files, i'm trying to replace entire line using sed command as follows
sed -i '/lib.home=/c\lib.home=$LIB_HOME' myconfig.properties
Actual Output : lib.home=blablabla
===> lib.home=$LIB_HOME
Expected Output : lib.home=blablabla
===> lib.home=/etc/temp
Please help