I'm getting: sed: -e expression #1, char 46: unterminated `s' commandOn this code:sed -i.bak -c 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward = 1|' /etc/sysctl.confMy editor is showing that char 46 is between the .* special characters. I'm working on centos 5 to 6.5 machines. Changing the delimiter didn't help nor did using  instead of ' and the code seems to work on linux mint 17.3's terminal, minus the -c. I think it might be interpreting the . or the * not as a special character. I tried :sed 's/net.ipv4.ip_forward.*/net.ipv4.ip_forward = 1/' /etc/sysctl.confIt took 10 minutes and did nothing so I stopped it. Works on mint 17.3. 
sed unterminated `s' command
centos;sed