redirection problem

hi all,

how to redirect the stdout msg in command line and file at the same time?

e.g
i got the script named test.sh, content as following:

#!/bin/sh
echo "111"

when i run the script ./test.sh > log.log, it will wirte the "111" into log.log, but how to show the "111" in command line when i using redirection?

man tee

tee command is what you are looking for.

solved~~
thx 4 quick response^^:b: