Scripting 如何在DOS中使用另一个命令的输出来运行该命令?

Scripting 如何在DOS中使用另一个命令的输出来运行该命令?,scripting,command,dos,if-statement,Scripting,Command,Dos,If Statement,例如: for /? | if (this stream has word "the" in it) {echo the line with "the"} 我需要以某种方式分析重定向流中的文本 本网站提供了有关在DOS中可以使用的不同类型管道的详细信息。使用管道,使用竖条,| 例如: 将for的输出导入find: 输出的前几行: command Specifies the command to carry out for each file. Specifi

例如:

for /? | if (this stream has word "the" in it) {echo the line with "the"}
我需要以某种方式分析重定向流中的文本


本网站提供了有关在DOS中可以使用的不同类型管道的详细信息。

使用管道,使用竖条,|

例如:

将for的输出导入find:

输出的前几行:

  command    Specifies the command to carry out for each file.
             Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead
If Command Extensions are enabled, the following additional
forms of the FOR command are supported:
    If set contains wildcards, then specifies to match against directory
  command    Specifies the command to carry out for each file.
             Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead
If Command Extensions are enabled, the following additional
forms of the FOR command are supported:
    If set contains wildcards, then specifies to match against directory