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"
,
""
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment