My variables issuer and subject contains
issuer=C=IN,ST=TN,L=XYZ,O=ABC,OU=CA,CN=XYZ.com/emailAddress=xyz@gmail subject=C=GB,ST=London,L=London,O=Global_Security,OU=IT,CN=example.comCA/emailAddress=acl@123
I want to replace a variable leftid
and leftca
with subject and issuer in xyz.conf respectively.
I'm using sed command like this
sed -i -e '/leftid=/s/=.*/= '$subject'/' /etc/xyz.conf
and
sed -i -e '/leftca=/s/=.*/= '$issuer'/' /etc/xyz.conf
But I'm getting the following error(s)
sed: -e expression #1, char 66: unknown option to
s' sed: -e expression #1, char 83: unknown option to
s'
Can anyone help?