Xref: utzoo comp.sources.wanted:9462 alt.sources.wanted:35 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!brutus.cs.uiuc.edu!lll-winken!arisia!sgi!shinobu!odin!bangles!ted From: ted@bangles.sgi.com (Ted Wilcox) Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: separate redirection of stderr and stdout in csh. Message-ID: <1506@odin.SGI.COM> Date: 17 Nov 89 18:18:18 GMT References: <13928@teraida.UUCP> Sender: news@odin.SGI.COM Reply-To: ted@bangles.sgi.com (Ted Wilcox) Organization: Silicon Graphics, Inc. Lines: 30 In article <13928@teraida.UUCP>, jeffy@teraida.UUCP (Jeffrey Youngstrom) writes: > Hiya, > In the bourne shell I can do this: > > #!/bin/sh > > dumb_command 1> good_stuff 2> errors > > to send the output of my command to good_stuff, and > any error messages to a file called errors. > > How the heck do you do this for csh?!!! > > And don't say "well it's easy if you use perl"!!! :-) > > Thanks in advance. > jeffy From my friendly neighborhood csh man page: "To redirect standard output and standard error to separate files, use (cmd > file1) >& file2" Hope this is what you wanted. Ted. ted@sgi.com {sun|decwrl|pyramid|ucbvax}!sgi!ted