Lost In The Green Shell
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"
,
""
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)