[NTLUG:Discuss] Copying a file to TWO destinations as the same time..
steve
sjbaker1 at airmail.net
Sat Jan 28 11:17:26 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'
Well, yeah.
cat source | tee first_destination > second_destination
You can replace 'cat' with any program that produces results on the
standard output - so 'dd' will work too. 'cp' doesn't produce output
to stdout though so that's not going to work.
More information about the Discuss
mailing list