开发者

Split command across lines

开发者 https://www.devze.com 2022-12-31 14:11 出处:网络
In Linux shell, one can split a command across se开发者_JAVA百科veral lines using \\. For example:

In Linux shell, one can split a command across se开发者_JAVA百科veral lines using \. For example:

cmd \
  arg1 \
  arg2

How can I do the same using Windows console?

Thanks!


Use ^

command line 1^
 line 2


One can split on other common operators on unix

command line 1 &&
  line 2

command line 1 |
  line 2
0

精彩评论

暂无评论...
验证码 换一张
取 消