跨行分割命令

发布于 2024-09-02 19:52:39 字数 147 浏览 5 评论 0原文

在 Linux shell 中,可以使用 \ 将命令拆分为多行。例如:

cmd \
  arg1 \
  arg2

如何使用 Windows 控制台执行相同操作?

谢谢!

In Linux shell, one can split a command across several lines using \. For example:

cmd \
  arg1 \
  arg2

How can I do the same using Windows console?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒与心事 2024-09-09 19:52:39

使用^

command line 1^
 line 2

Use ^

command line 1^
 line 2
ゞ记忆︶ㄣ 2024-09-09 19:52:39

可以在 Unix 上拆分其他常见运算符

command line 1 &&
  line 2

command line 1 |
  line 2

One can split on other common operators on unix

command line 1 &&
  line 2

command line 1 |
  line 2
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文