Redirect stdout to file and stderr to file and to screen

view story

http://askubuntu.com – I am running valgrind to shake out bugs in my program. Valgrind's memcheck prints to stderr. What I want to do is a modification to this: valgrind --tool=memcheck ./a.out >output 2>grindout But, I also want valgrind output to display on screen. So program's output all goes to file. Valgrind output is placed in grindout and displayed to screen. How do I do so? thanks. (HowTos)