X-Spam-Check-By: sourceware.org
Message-ID: <BAY13-F1770CB8EBE9EB77B7CE97DA9740@phx.gbl>
X-Sender: sbremal@hotmail.com
In-Reply-To: <20070321194840.GA27735@suncomp1.spk.agilent.com>
From: "B. S." <sbremal@hotmail.com>
To: cygwin@cygwin.com
Subject: Re: Pass-through filter with logging
Date: Wed, 21 Mar 2007 20:06:40 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thanks a lot!

I was sure it's somewhere there. Love bash and Unix.

>From: Gary Johnson <garyjohn@spk.agilent.com>
>To: cygwin@cygwin.com
>Subject: Re: Pass-through filter with logging
>Date: Wed, 21 Mar 2007 12:48:40 -0700
>
>On 2007-03-21, B. S. wrote:
> > Hi All,
> >
> > I'm trying to do the following:
> >
> > lynx -source $url > logged_file
> > tidy -asxml -q < logged_file
> >
> > in a more elegant way like:
> >
> > lynx -source $url | log_pass_through logged_file | tidy -asxml -q
> >
> > I believe (maybe not true) that the latter should be more performant 
>since
> > the file is not needed to be read.
> >
> > The question is: Does such command ("log_pass_through") exist by default 
>in
> > Cygwin?
>
>Yes.  It's called 'tee'.  See the tee(1) man page.
>
>Gary
>
>--
>Gary Johnson                 | Agilent Technologies
>garyjohn@spk.agilent.com     | Mobile Broadband Division
>                              | Spokane, Washington, USA
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

