[NTLUG:Discuss] Copying a file to TWO destinations as the same time..

Fred James fredjame at fredjame.cnc.net
Sun Jan 29 00:18:05 CST 2006


Richard Geoffrion wrote:

> Does anyone know of a way..or possible way to copy a file to multiple 
> locations at the same time?  I know that TEE can do something 
> similar..but is there a way to copy or dd and send the information 
> through 'tee'?
>
> Is there another utility that one could explore to possibly accomplish 
> this?
>
Richard Geoffrion
Tee should do it - it takes from stdin and writes to stdout plus a file 
(or files), and stdout can be redirected.  Is that what you wanted to 
do, or did I get that wrong?
Regards
Fred James

Snipped from 'man tee'
"tee - read from standard input and write to standard output and files"






More information about the Discuss mailing list