How to break lines in PowerShell? How to break lines in PowerShell? powershell powershell

How to break lines in PowerShell?


Try "`n" with double quotes. (not single quotes '`n' )

For a complete list of escaping characters see:

Help about_Escape_character

The code should be

$str += "`n"


I think I found it. All you have to do is type in "`n" (WITH THE QUOTATION MARKS!)

Thanks!


Just in case someone else comes across this, to clarify the answer `n is grave accent n, not single tick n