Hi¡¡
If I have
sed -i 's/#autologin=linaro/autologin=linaro/g' /etc/lxdm/default.conf
but I need the entire sentence wich contents "#autologin=linaro" to be replaced (and not only the string "#autologin=linaro") ... what would be the most simple and transparent way for doing that?
Thanks.
Edit:
sed -i "3c\autologin=linaro" default.conf
It has to be in third sentence though, but no matter as soon as no one messes to much with files.