Redirecting to Multiple Locations with tee
Suppose you just updated your address book file and want to send it to your boss in addition to putting it in your own files. You can, using tee, which redirects output to two different places (see Code Listing 6.19).
To redirect output to two locations with tee:
Code Listing 6.19. Use tee to send output to two different places at once.