tee redirection/rewtite file and show in terminal
command | tee file
This pattern (which includes the tee command) redirects the standard output of the command to a file and overwrites its contents. Then, it displays the redirected output in the terminal. It creates a new file if the file does not already exist.
Comments
Post a Comment