[R] R as Unix-Filter and Streams for DataMining
    Douglas Bates 
    bates at stat.wisc.edu
       
    Fri Dec  3 17:13:41 CET 1999
    
    
  
"John D. Barnett" <jbarnett at wi.mit.edu> writes:
> Two (klugey) ideas--
> 
> - write a script which reads standard input, and reads a file, and outputs
> both of them to standard output.  (Maybe there's a command that does this
> already; anyone know?)  
Most Unix/Linux systems have a command called "tee", which makes
"T-joints" in pipes.
$ tee --help
Usage: tee [OPTION]... [FILE]...
Copy standard input to each FILE, and also to standard output.
  -a, --append              append to the given FILEs, do not overwrite
  -i, --ignore-interrupts   ignore interrupt signals
      --help                display this help and exit
      --version             output version information and exit
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list