tee-replicates the standard output

 <  Day Day Up  >  

tee ”replicates the standard output

 tee [ ai ] [ filename ] 

tee copies the standard input to the standard output and one or more files, as in lstee outfile . Output goes to screen and to outfile .

Example A.58.
 date  tee nowfile 

EXPLANATION

The output of the date command is displayed on the screen and also stored in nowfile .

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net