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, ∼3343🔥, 0💬
Popular Posts:
How to export Windows services to a text file? If you want to export services that are currently con...
How to configure a wireless router? Usually, wireless routers are shipped with a default configurati...
What is "ActiveX Installer (AxInstSV)" in my Windows XP service list? And how is "ActiveX Installer ...
I have a problem wiht the Drivers Video Card, I have a laptop HP dv6448se and the video card are a N...
What are Mozilla FireFox 2 add-ons? Mozilla FireFox 2 add-ons extend the browser functionalities. So...