Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!hellgate.utah.edu!csn!boulder!tramp.Colorado.EDU!lewis From: lewis@tramp.Colorado.EDU (LEWIS WILLIAM M JR) Newsgroups: comp.unix.questions Subject: Re: using tee program with tar output Message-ID: <1991May10.160039.17841@colorado.edu> Date: 10 May 91 16:00:39 GMT References: <26840@adm.brl.mil> Sender: news@colorado.edu (The Daily Planet) Organization: University of Colorado, Boulder Lines: 16 Nntp-Posting-Host: tramp.colorado.edu In article <26840@adm.brl.mil> sean@dmr.asa.com (Sean Baker) writes: > >Hello, > >I'm trying to redirect the output of tar to a file. > >I can do this fine in the csh by using: > > tar cvf tarfile /tmp |& tee tar.out > >But how do I do this with the Bourne shell? I can't seem to ... Try: { tar cvf tarfile /tmp 2>&1 } | tee tar.out I haven't tried it, but it should work.