From
[email protected] Thu Dec 18 08:17:43 2008
Path: egsner!news.cirr.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!news2.arglkargh.de!news.karotte.org!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!spln!extra.newsguy.com!newsp.newsguy.com!not-for-mail
From: Gary Johnson <
[email protected]>
Newsgroups: comp.unix.shell
Subject: Re: 2 stdout destinations
Date: 17 Dec 2008 19:05:20 GMT
Organization: NewsGuy - Unlimited Usenet $19.95
Lines: 17
Message-ID: <
[email protected]>
References: <
[email protected]>
NNTP-Posting-Host: p15f30f7bdb045e642ebc0084bc25973048cc41b1a6a440476a47cda00c53b1f9.newsdawg.com
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/4.1.4 (sun4m))
Xref: egsner!news.cirr.com comp.unix.shell:208942
X-IMAPbase: 1230221426 1
Status: O
X-Status:
X-Keywords:
X-UID: 1
Steven Borrelli <
[email protected]> wrote:
> Is it possible to duplicate the stdout stream?
>
> Anyone know how I can redirect a program's stdout to a file but still
> have it appear on the screen as it normally would?
>
> I'm using FreeBSD 7.0 with /bin/csh, but any ideas would be
> appreciated.
man tee
Example:
ls -C | tee ls.out
--
Gary Johnson