Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created February 12, 2015 14:45
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 kayasax/aba73805547d2936d6a2 to your computer and use it in GitHub Desktop.
Save kayasax/aba73805547d2936d6a2 to your computer and use it in GitHub Desktop.
replace a version number
# replace versionnumber="xxx" whith versionnumber="yyy"
(gc C:\temp\config.xml) -replace '(newversion=)".*"' ,'$1"yyy"' # if you want to save the file add |sc c:\temp\config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment