Categories:
Administration (10)
Adware Spyware (7)
Apache (10)
Bluetooth (125)
DOS Commands (1)
Edge (28)
General (2)
Internet Explorer (217)
Media Center (12)
Media Player (11)
Mozilla Firefox (18)
PHP (15)
Programming (8)
Security (4)
Silverlight (15)
Tips (17)
Tools (218)
Tutorials (5)
Windows 10 (166)
Windows 7 (636)
Windows 8 (1091)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (52)
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, 1159👍, 0💬
Popular Posts:
What is the "McClientAnalytics.exe" process on windows 7? Is the "McClientAnalytics.exe" process a v...
How to remove REFIEBAR.DLL - Microsoft Research Extra Toolbar Button and Extra Tools Menu Item for I...
What are Exploit-ObscuredHtml Trojan Web Pages? If you have McAfee VirusScan installed, sometimes yo...
How to download Mozilla FireFox 2? If you want to try Mozilla FireFox 2, you can follow this tutoria...
What are TCD*.tmp Temporary Folders on my Windows 7 computer? Can I remove them? TCD*.tmp Temporary ...