X-Spam-Check-By: sourceware.org Date: Wed, 21 Mar 2007 12:48:40 -0700 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: Pass-through filter with logging Message-ID: <20070321194840.GA27735@suncomp1.spk.agilent.com> Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.12 (2006-07-14) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 AT spk DOT agilent DOT 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/