Sunday, April 16, 2017

(powershell) Remove line breaks from a file

I needed to remove the newlines from an exported certificate to get the public key.
Nice and simple.


 $result = 'string_with_newlines'' -replace "`t|`n|`r",""

No comments:

Post a Comment