Categories:
Administration (161)
Adware Spyware (43)
Apache (20)
Bluetooth (127)
DOS Commands (2)
Edge (28)
General (5)
Internet Connection (21)
Internet Explorer (224)
Media Center (14)
Media Player (135)
Mozilla Firefox (22)
MS Access (9)
Performance (204)
PHP (25)
Programming (36)
Security (109)
Silverlight (22)
Tips (144)
Tools (312)
Tutorials (40)
Windows 10 (168)
Windows 7 (1411)
Windows 8 (1712)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (71)
Windows XP (23)
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
2017-12-05, 674👍, 0💬
Popular Posts:
Why don't my playlists work on my new computer? An entry in a playlist uses a "relative path" to ide...
How much does Windows Media Player 11 cost Windows Media Player 11 is a free update to the Windows M...
What are default Startup Programs on a Windows 7 Home Premium computer? If you are running a Windows...
How to use sc.exe command to start and stop an existing service? If you want to start or stop a serv...
If you are using a wireless router to connecting to the Internet through a DSL modem, how many IP ad...