tee: Redirect output to multiple files

Redirect output to multiple files, copies standard input to standard
output and also to any files given as arguments. This is useful when you want
not only to send some data down a pipe, but also to save a copy.
Syntax
tee [options]... [file]...

Options
-a
--append
Append standard input to the given files rather than overwriting
them.

-i
--ignore-interrupts?
Ignore interrupt signals.

Example:

ps -ax | tee processes.txt | more
If a file being written to does not already exist, it is created.

If a file being written to already exists, the data it previously contained
is overwritten unless the `-a? option is used.

"Twenty years from now, you will be more disappointed by the things you didn?t
do than by the ones you did do. So throw off the bowlines, sail away from the
safe harbour. Catch the trade winds in your sails. Explore. Dream. Discover."
Mark
Twain
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (9 + 4) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 24.08.2009
Views: 402
Item date: 23.08.2009
Views: 1627
Item date: 12.04.2009
Views: 968
Item date: 06.02.2009
Views: 354
Item date: 26.09.2009
Views: 2122
Item date: 06.02.2009
Views: 984
Item date: 20.10.2009
Views: 724
Item date: 23.01.2012
Views: 30
Item date: 06.02.2009
Views: 1364
Item date: 19.07.2009
Views: 710