linux tee command

C++
copyping google.com | tee output1.txt output2.txt output3.txt
Source

Also in C++: