Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekdagarit/091247cdfe11d3a974a9e4e8a650c965 to your computer and use it in GitHub Desktop.
Save abhishekdagarit/091247cdfe11d3a974a9e4e8a650c965 to your computer and use it in GitHub Desktop.
Replace an occurrence of a text in XML
powershell -Command "(gc combined.xml) -replace '<root>', '' | Out-File updatedXML.xml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment