HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace < with < in AutoExpect Script??

 
sweetu
Occasional Contributor

How to replace < with < in AutoExpect Script??

According to requirements, I need to find the xml which comes in between < message data > tag and that message tags should be converted from < to < and > to >. How to do this with EXPECT. Any suggestions are appreciated.

Message looks as follows,

<ASNOutDesc
<to_location>jqofVPæ±</to_location>
lt;from_location>DxZvzWæ±</from_location>

1 REPLY
likid0
Honored Contributor

Re: How to replace < with < in AutoExpect Script??

Why with expect ?

why don't you try with sed ?, or even in vi.
Windows?, no thanks