shell script output redirection
I am having a lot of trouble figuring out how to output the contents of a command to a file and also having it appear within the terminal. All the standard redirection I know of, such as ping google.com > output.out, will simply give the impression that the computer has locked up while it prints to file.
Is there anyway to have the output printed within the terminal and to the file simultaneously?
Thanks in advance,