Echo newline to powershell console

后端 未结 3 1254
太阳男子
太阳男子 2020-12-29 04:17

Is it possible to write a newline to the console in powershell?

I tried echo \"\\n\" but it is not translated to a new line, it just outputs \\n

3条回答
  •  一个人的身影
    2020-12-29 04:44

    Can you give us a bit more details about your query? Where do you want to use a new line character?

    By the way, you should it use like this:

    PS D:\> "This is an `n example!"
    This is an
     example!

提交回复
热议问题