Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Delete CR LF characters within a specific block of text in a file

$
0
0

Hi,

    I have an XML file that contains something similar to this:

<Address1> some text here CR LF

another text here</Address1>

<Address2>text here</Address2>

How do I use powershell to make the Address1 field look like the Address2 one?

I tried using a select-string command, but, as it does not support wildcards, it is of no help in this situation. One more thing: all I need is to delete the CR LF chars from the Address1 field, leaving all other CR LF's alone!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>