home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / CUG / TEE.DOC < prev    next >
Text File  |  1993-12-01  |  1KB  |  46 lines

  1. /*
  2.     HEADER:        CUG000.00;
  3.     TITLE:        Portable TEE Documentation;
  4.     DATE:        05/23/87;
  5.     FILENAME:    TEE.DOC;
  6.     SEE-ALSO:    TEE.C;
  7.     AUTHORS:    Michael M. Yokoyama;
  8. */
  9.  
  10. -------------------------------------------------------------------------------
  11.  TEE
  12. -------------------------------------------------------------------------------
  13.  
  14. Format:
  15.  
  16.      tee filename
  17.  
  18. Purpose:
  19.  
  20. TEE is a text filter that passes the standard input to a designated file (or 
  21. MS-DOS device) in addition to passing it unchanged to the standard output.
  22.  
  23. Examples:
  24.  
  25. Copy the file named original to two new files, newfile1 and newfile2.
  26.  
  27.      tee newfile1 <original >newfile2
  28.  
  29. Echo what is typed at the keyboard onto the screen, while saving the characters
  30. to a file named record.
  31.  
  32.      tee record                         
  33.  
  34. Copy the file named original to a new file (newfile), while printing the 
  35. contents of original on the printer.
  36.  
  37.      tee newfile <original >prn 
  38.  
  39. Take the directory, display it on the screen, save the directory to the file 
  40. named dirlist, sort the directory, and place the sorted directory in the file 
  41. named dirsort.
  42.  
  43.      dir | tee con | tee dirlist | sort > dirsort
  44. -------------------------------------------------------------------------
  45.  TEE
  46. -------