From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14548 invoked from network); 9 Jun 1999 23:14:38 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jun 1999 23:14:38 -0000 Received: (qmail 27013 invoked by alias); 9 Jun 1999 23:10:44 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2376 Received: (qmail 27004 invoked from network); 9 Jun 1999 23:10:40 -0000 To: zsh-users@sunsite.auc.dk Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.users Subject: Re: tee-like file redirection in shell? Date: 9 Jun 1999 23:10:35 GMT Organization: PrimeNet Computer Consultants Distribution: local Message-ID: References: <19990609172916.A17470@astaroth.nit.gwu.edu> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Trace: coral.primenet.com.au 928969835 14472 203.43.15.2 (9 Jun 1999 23:10:35 GMT) X-Complaints-To: usenet@coral.primenet.com.au NNTP-Posting-Date: 9 Jun 1999 23:10:35 GMT User-Agent: slrn/0.9.5.6 (UNIX) Sweth Chandramouli typed: :On Wed, Jun 09, 1999 at 08:16:39PM +0100, Bruce Stephens wrote: :> Sweth Chandramouli writes: :> > is there currently some way to reproduce the effect of :> > the tee command in the shell itself, :> Yes. This works for me: :> % ps > some_file | cat :> Is there any nicer way to say "save to a file and show the results" :> than using the ugly "| cat"? : i don't know that it's particularly nicer, but something like :% ps > some_file > /dev/stdout : should at least save a process from being spawned. % ps >&1 >some_file NB: take care with the order, it's not % ps >some_file >&1 Regards, -- Geoff Wing Mobile : (Australia) 0413 431 874 Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/