In Bash, I'd like to redirect stdout to a file (>> mylog.txt) but also see the stdout output on the screen..
How can I do it with bash?
command | tee -a mylog.txt
will append the output of the command to the file and also show it on screen.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago