예 :DOS에서 다른 명령의 출력을 사용하여 명령을 실행하는 방법은 무엇입니까?
for /? | if (this stream has word "the" in it) {echo the line with "the"}
나는 리디렉션 된 스트림의 텍스트를 분석하는 데 어떻게 든해야합니다.
예 :DOS에서 다른 명령의 출력을 사용하여 명령을 실행하는 방법은 무엇입니까?
for /? | if (this stream has word "the" in it) {echo the line with "the"}
나는 리디렉션 된 스트림의 텍스트를 분석하는 데 어떻게 든해야합니다.
수직 막대 "|"를 사용하여 파이프를 사용하십시오. 출력의
for /? | find "the"
처음 몇 줄 :
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
파이프 에에 대한 의 출력이을 찾을 수 있습니다 : 예를 들어
http://www.febooti.com/products/command-line-email/batch-files/ms-dos-command-redirection.html
이 웹 사이트는 당신이 DOS에서 할 수있는 배관의 다른 유형에 대한 좋은 정보가 있습니다.