Tee (pipe + file)

Terminal
<command> | tee output.txt