I am trying to replace charater < with empty or no charaeter in this file /etc/dovecot/conf.d/10-ssl.conf
My script is
sudo sed -i 's/\<\/etc\/dovecot\/private\/dovecot\.pem/\/etc\/dovecot\/private\/dovecot\.pem/g' /etc/dovecot/conf.d/10-ssl.conf
It didn't work then tired:-
sudo sed -i '0,/\<\/etc\/dovecot\/private\/dovecot\.pem/s/\<\/etc\/dovecot\/private\/dovecot\.pem/\/etc\/dovecot\/private\/dovecot\.pem/' /etc/dovecot/conf.d/10-ssl.conf
It didn't work as well. What is wrong and how can I do it? Also, it is long. How can I split it multiple lines?