Redirecting output to both console and to a file

Hi All,

Is there a way in Bash we can redirection some output to both console and the file at the same time.

~Parag

This is exactly what "tee" utility does. Here is an example:

cat file1 | tee copy_of_file1

Thnx it worked.