Hi Folks,
I know this isnt the right forum, I searched, but couldnt find the right spot, so hopefully powershell is close enough.
My need is, to have a basic CMD script run a command, that pops out a flat XML file, but within some of the elements is the & symbol.
This needs to be changed to &
On my workstation, I just used sed 's/&/&/g' but it seems the designers arent happy about installing sed so I'm looking for an alternative.
I can use findstr to locate the offending line, but cant wrap my mind around changing it.
Best I can think of is, use a for loop to iterate over each line in the file, test it, when found, re-write the line with corrected output. Seems like the hard way though.
Any ideas/thoughts would be welcome.
I know this isnt the right forum, I searched, but couldnt find the right spot, so hopefully powershell is close enough.
My need is, to have a basic CMD script run a command, that pops out a flat XML file, but within some of the elements is the & symbol.
This needs to be changed to &
On my workstation, I just used sed 's/&/&/g' but it seems the designers arent happy about installing sed so I'm looking for an alternative.
I can use findstr to locate the offending line, but cant wrap my mind around changing it.
Best I can think of is, use a for loop to iterate over each line in the file, test it, when found, re-write the line with corrected output. Seems like the hard way though.
Any ideas/thoughts would be welcome.