Created
May 4, 2021 16:40
-
-
Save nanoDBA/5653d3785634cd87c826454822ea5416 to your computer and use it in GitHub Desktop.
Converting a Here-String to an Array of Strings
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
$someThingsArray = ($HereString = @" | |
one | |
two | |
three | |
"@ | |
).split("`n").TrimEnd("`r") <# Converting a Here-String to an Array of Strings https://web.archive.org/web/20201027204331/https://gallery.technet.microsoft.com/scriptcenter/Tip-of-the-Week-Converting-221aab3f #> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment