In this video we discuss how to redirect dos command output to file or printer.
A number of dos commands send output to the screen and/or require input from the user. Redirection is a mechanism whereby the output of a command can be fed either to a device (e.g. a printer), a file, another program, or a command. you may also use a batch file redirect output to file
redirect definition:
In computing, redirection is a form of interprocess communication, and is a function common to most command line interpreters, including the various Unix shells that can redirect standard streams to user-specified locations. one example is to have a batch file print text
how to use the pipe command in dos:
The "pipe" redirects the output of a program or command to a second program or command.
Syntax:
Command1 | Command2
Example:
To sort a directory listing based on the time the files were last modified, the output of a directory listing is piped to the SORT filter which sorts on the 39th character of each line:
DIR c:\data\docs | SORT /+39
how to use the sort command in dos
SORT is a filter command (reads from input, transforms it, and outputs it to the screen, to a file, or to a printer). SORT is used to alphabetize a file. You can specify which column in the file to sort on. If you do not specify a column, SORT alphabetizes using the character in the first column.
Welcome to the Adventure! This is Adam. If this is your first time here thank you for stopping by. On this channel we discuss retro tech and legacy software. From how to videos to demonstrations and experimentation. There is a little bit here for all manner or retro enthusiasts.
Channel Page: https://www.youtube.com/c/AdventuresinNostalgia
Subscribe:https://www.youtube.com/c/AdventuresinNostalgia?sub_confirmation=1
Here are some suggestions for videos to check out. If you are interested in learning about MS-DOS and how to use it. Check out this playlist
https://www.youtube.com/playlist?list=PLgc6pU96eC5zDNcG4hjRndeDf3l31eCQ-
https://www.youtube.com/playlist?list=PLgc6pU96eC5z9yqICCminF-4pkxcAx0Z2
If you want to learn more about early versions of Windows and what can be done with them. Check out these playlists.
https://www.youtube.com/playlist?list=PLgc6pU96eC5xpQFca-B4GKl79Y-4yeSS8
https://www.youtube.com/playlist?list=PLgc6pU96eC5ybM0aig5A8fA1kEahosprx
I appreciate you spending time here with me on the channel. If you would like to join me for more on retro tech and legacy software please subscribe and click the bell icon so you don’t miss anything. #msdos #msdoscomputer