Skip to content

Instantly share code, notes, and snippets.

@altrive
Last active August 29, 2015 14:10
Show Gist options
  • Save altrive/e90e0157fb9437024cf6 to your computer and use it in GitHub Desktop.
Save altrive/e90e0157fb9437024cf6 to your computer and use it in GitHub Desktop.
#Execute as .ps1
$text = @'
a
b
c
'@
Write-Host $text.Length
#Execute as ps1 script (or inside powershell ise)
#7 = (3) + (CRLF * 2)
#Execute in PowerShell console by copy&paste as interactive mode
#5 = (3) + (LF * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment