Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,506,334,255 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

DOS redirection

    0.02 sec.

DOS redirection

Redirecting keyboard input and screen output (see DOS Mode to redirect the printer port). Normally, DOS gets input from the keyboard and displays output on screen. However, you can redirect input from the keyboard to another file and redirect output from the screen to the printer or a disk file. The symbols are:

   <   Redirect input
   >   Redirect output to a new file
   >>  Redirect output to an existing file

For example, to redirect the output of a Dir list to the printer, type:
                 dir > prn


PRN is the name of the parallel port (see DOS device names).

The following example redirects input to sort a text file named FIRST into alphabetical order and display it on screen:
               sort < first


Using both input and output redirection, the sorted file can be copied into a new file called SECOND. Think of < as "input from," and > as "output to."
            sort < first > second


Redirection can be used with the Pipe command, which funnels output of one command into another. The following example, using the pipe's vertical bar symbol, funnels output of the Dir list to the Sort filter before redirecting it to a disk file called NEWLIST:
            dir | sort > newlist

Since the pipe and redirection symbols act as word separators, you could type the above command as:
            dir|sort>newlist


See DOS Sort.



How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.