如何使用换行符在CMD批处理文本? [英] How to use newline character in text in cmd batch?
本文介绍了如何使用换行符在CMD批处理文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想这样做。
svn commit -m "<message>"
但消息应该有两行:
But message should have two lines:
Commit by: firstuser
Bug track: 9283
如何添加新行字符到消息?我试过Shift + Enter,CTRL + T,但它不工作。我使用MS cmd命令行。
How to add new line character into message? I've tried SHIFT+ENTER, CTRL+T but it does not work. I use MS cmd command line.
推荐答案
如何使用 -F
参数来获取该文件中的日志消息?
How about using the -F
parameter to get the log message from a file?
然后,你可以这样做(未经测试):
Then, you could do this (untested):
ECHO Commit by: firstuser>SvnLog.txt
ECHO Bug track: 9283>>SvnLog.txt
SVN COMMIT -F SvnLog.txt
这篇关于如何使用换行符在CMD批处理文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文