Browsing: tee command
You can choose where exactly you want your captured data saved – whether it’s appending it into an existing file or creating an entirely new one altogether
Master the art of Bash scripting: Learn how to efficiently write to file using redirection operators, Tee command, and more