Skip to content

Instantly share code, notes, and snippets.

@nanoDBA
Created May 4, 2021 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoDBA/5653d3785634cd87c826454822ea5416 to your computer and use it in GitHub Desktop.
Save nanoDBA/5653d3785634cd87c826454822ea5416 to your computer and use it in GitHub Desktop.
Converting a Here-String to an Array of Strings
$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