home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / definit / piping.hlp < prev    next >
Encoding:
Text File  |  1989-01-01  |  1.0 KB  |  25 lines

  1. PIPING
  2.  
  3. To pipe (send, channel, direct) the output of one command into another command.
  4.  
  5. When output from a command that would normally appear on the screen is instead 
  6. used as input to another command, that would normally get its input from the 
  7. keyboard, the output is piped to the input. Piping is controlled by the use of 
  8. the vertical bar (|) character. Some versions of DOS may not support the use 
  9. of piping in BATCH files. Some examples follow. 
  10.  
  11. If a text file, maybe some sort of document, had 10,000 lines in it, it could 
  12. be displayed on the screen one full screen at a time, with the command
  13.  
  14.     TYPE BIGFILE.TXT | MORE
  15.  
  16. If a directory contained 20 entries, to get a listing of the contents of the 
  17. directory in alphabetical order, the command
  18.  
  19.     DIR | SORT
  20.  
  21. could be used. If the directory had 120 entries, an alphabetical display one 
  22. full screen at a time could be obtained by the command
  23.  
  24.     DIR | SORT | MORE
  25.