Created
November 3, 2016 21:26
-
-
Save dhcgn/c70be38e29b1d37ffb01b2807af221a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pathOld = 'C:\Users\user\Documents\old.ics' | |
$pathNew = 'C:\Users\user\Documents\new.ics' | |
(Get-Content $pathOld -Encoding UTF8) | | |
% {$_ -replace '^UID:.{36}', ("UID:{0}" -f ([System.Guid]::NewGuid().ToString())) } | | |
Out-File $pathNew -Encoding utf8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment