Resolved now.
The variable contained a slash '/'. That is why is it did not work with delimiter / but did work with , delimiter.
Is there any way in which we write the command using such a delimiter which works irrespective of the special symbols present in the replacement string.
Regards
Sonal Kumari
Tata Consultancy Services Limited
Mailto:
address@hiddenWebsite:
http://www.tcs.com____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________
To: Sonal Kumari <address@hidden>
From: Martin Guy <address@hidden>
Date: 05/20/2015 05:00PM
Subject: Re: [Bug-ed] Help with ed command
On 20/05/2015, Sonal Kumari <address@hidden> wrote:
> While using the ed command on AIX (7.1)server, the below command doesn't
> work :
>
> s/DB_ENC_PWD/$EncPassword/
>
> However, when the same is changed to
>
> s,DB_ENC_PWD,$EncPassword
>
> it starts working fine. Is there any explanation for this?
Hi! I've never seen that behaviour on other systems.
Can you arrange ssh access to the AIX system via internet so that I
can try to pinpoint the problem?
M