Collections:
Other Resources:
Pipe STDOUT of Previous Command as STDIN of Next
How to redirect (or pipe) STDOUT stream from the first command as STDIN stream of the next command?
✍: FYIcenter.com
If you want to pipe two commands together by redirecting
the STDOUT stream of the first command as the STDIN stream
of the second command, you can use the
pipe redirection operator "|" as shown below:
command options | command options
For example, the "type list.txt" command reads content of the given file and writes to the STDOUT stream. The "sort" command reads lines from the STDIN stream, sorts them and writes them the STDOUT stream.
If you pipe them together as "type list.txt | sort", it will reads lines from the given file, sort them and writes them to STDOUT:
C:\fyicenter>type list.txt | sort 13532 18297 27977 29435 9430
⇒ Run Two Commands Sequentially
2021-05-15, ∼2738🔥, 0💬
Popular Posts:
What is the "CmRcService.exe" process on windows 7? Is the "CmRcService.exe" process a virus? Can I ...
Can I register my computer later? I don't want to register my computer during the initial Windows 7 ...
What is the installed program "Apple Application Support (64-bit)" on my Windows 7 computer? "Apple ...
How to create a command button to run my macro in slide show view? I have created a macro that displ...
How set up "live tv" in Windows Media Center on Windows 7? If you have TV tuner installed on your co...