Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!se-sd!rns From: rns@se-sd.sandiego.NCR.COM (Rick Schubert) Newsgroups: comp.unix.questions Subject: Re: Redirecting stdout stderr separately. Message-ID: <1501@se-sd.sandiego.NCR.COM> Date: 31 Mar 88 17:07:35 GMT References: <287@unh.UUCP> Reply-To: rns@se-sd.sandiego.NCR.COM (Rick Schubert) Distribution: na Organization: NCR Corp. Systems Engineering, San Diego Lines: 13 Keywords: stdout, stderr, C-Shell, Bourne Shell. In article <287@unh.UUCP> abc@unh.UUCP (Avinash B Chopde) writes: > >Is there any simple way in C-Shell to duplicate the following >Bourne Shell command to redirect stdout messages to file1 and >stderr messages to file 2 ? > >$ command 1> file1 2> file2 Try this: % (command > file1) >& file2 This (I believe) causes an extra shell to be executed, so it is less efficient than for the Bourne shell, but it should do what you want.