Collections:
Other Resources:
Redirect STDIN Stream for Command to File
How to redirect STDIN stream from the keyboard to an existing file? I want the command to read data from a file.
✍: FYIcenter.com
You can use the "<" redirect operator to redirect the STDIN stream from the keyboard to an existing file as shown below:
command options < file-name
For example, the "SORT" command reads lines from the STDIN stream, sorts them and print them back to the screen.
By default, "SORT" reads lines from the keyboard. But we can redirect it to a file as shown below:
C:\fyicenter>sort < \windows\system32\drivers\etc\hosts # # 38.25.63.10 x.acme.com # x client host # 102.54.94.97 rhino.acme.com # source server # Additionally, comments (such as these) may be inserted on individual # be placed in the first column followed by the corresponding host name. # Copyright (c) 1993-2009 Microsoft Corp. ...
⇒ Redirect STDOUT Stream for Command to File
2022-12-03, 2153🔥, 0💬
Popular Posts:
How to stop a Windows XP service getting started automatically at system startup time, or disabling ...
How to dump the list of all processes that are running on my Windows 7 system? I want save names of ...
What is the difference between a Web page and a Single File Web Page? Word 2007 supports 2 Web page ...
How to remove reader_sl.exe from the startup application list to gain performance and reduce securit...
Where to find tutorials on managing Windows 7 scheduled tasks? Here is a collection of tutorials on ...