echo -e "1\n2\n3\n4" | sed '/2/a test'
echo -e "1\n2\n3\n4" | sed '/2/,/4/a test'
sed -i "s/^IP.*/IPADDRESS=$ip/g" /etc/file.conf
sed -i 's/^IP.*/IPADDRESS='$ip'/g' /etc/file.conf
sed "s/^IP.*/IPADDRESS=$ip/g" /etc/file.conf > /etc/file.conf2 && mv /etc/file.conf2 /etc/file.conf