line="Include /2"
rep=""
sed -e "s/${line}/${rep}/g" /root/new_scripts/a.conf
sed -e "s|${line}|${rep}|g" /root/new_scripts/a.conf
References :
bash - replace a string in file using shell script - Stack Overflow
line="Include /2"
rep=""
sed -e "s/${line}/${rep}/g" /root/new_scripts/a.conf
sed -e "s|${line}|${rep}|g" /root/new_scripts/a.conf
References :
bash - replace a string in file using shell script - Stack Overflow
sed -s 's/211.xxx.xxx.xxx/192.168.1.1/g' access_log access.log security