是否有可能把一个换行符在一个批处理文件回音行? [英] Is it possible to put a new line character in an echo line in a batch file?
本文介绍了是否有可能把一个换行符在一个批处理文件回音行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能把新行字符的回声线批处理文件?
Is it possible to put a new line character in an echo line in a batch file?
基本上,我希望能够做等价的:
Basically I want to be able to do the equivalent of:
echo Hello\nWorld
您可以在Linux中做到这一点很轻松了,但我不知道如何做到这一点在Windows中。
You can do this easily enough in Linux, but I can't work out how to do it in Windows.
推荐答案
回声。
打印一个空行。
例如:
echo Hello
echo.
echo world
打印
Hello
world
这篇关于是否有可能把一个换行符在一个批处理文件回音行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文