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