This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pass-through filter with logging


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]