How to use newline character in text in cmd batch?

后端 未结 12 1926
忘掉有多难
忘掉有多难 2020-12-31 07:08

I would like to do

svn commit -m \"\"

But message should have two lines:

Commit by: firstuser
Bug track: 92         


        
12条回答
  •  清歌不尽
    2020-12-31 07:42

    I found the answer over at Serverfault:

    svn ci -m $'This is the first line\nThis is the second line'
    

    Apparently it's a shell-problem.

提交回复
热议问题