Path: utzoo!attcan!uunet!ogicse!mintaka!snorkelwacker!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.unix.shell Subject: Re: error and out redirection Message-ID: Date: 20 Sep 90 20:58:34 GMT References: <2682@crdos1.crd.ge.COM> <4444@orchid12.UUCP> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 18 In-reply-to: ellis@motcid.UUCP's message of 20 Sep 90 17:38:53 GMT In article <4444@orchid12.UUCP> ellis@motcid.UUCP (John T Ellis) writes: | For CSH users, you can do the following: | | % (command > std.out) &> std.err | | Why this works is that you FIRST execute () with the standard output going | to std.out, BUT any errors generated by () will be MERGED with standard | output to std.err. Since you already sent standard output somewhere else, | the merge results in only the errors! Pretty slick eh?! The word pathetic comes to mind before slick. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Do apple growers tell their kids money doesn't grow on bushes?