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, ∼2525🔥, 0💬
Popular Posts:
Extracting All Files from a ZIP File 1. Run WinZIP and select menu File > Open Archive. The "Open Ar...
How to setup a HP laptop computer? I want to buy the new HP laptop computer on sale at Best Buy for ...
What is "Protexis Licensing V2" in my Windows 7 service list? And how is "Protexis Licensing V2" ser...
What to Do When HelpSvc.exe Is Running Out of Control - Using High CPU and Memory? If you find your ...
What is "Windows Driver Foundation - User-mode Driver Framework" in my Windows XP service list? And ...