Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Tee | 19 comments | Create New Account
Click here to return to the 'Tee' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: Colin Jensen on Jul 29, '08 10:37:40AM

The command you are looking for is tee. It passes the output through while saving a copy to a file

system_profiler | tee myfile.txt

[ Reply to This | # ]
Authored by: wjv on Jul 30, '08 01:54:43AM
And if you're trying to capture the output of an interactive process instead, use script(1).

[ Reply to This | # ]