Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!boulder!ccncsu!handel.colostate.edu.!dempsey From: dempsey@handel.colostate.edu. (Steve Dempsey) Newsgroups: comp.unix.wizards Subject: Re: a.out 1> file.out 2> file.err in csh? Summary: yes Keywords: csh stdout stderr redirect Message-ID: <506@ccncsu.ColoState.EDU> Date: 26 Oct 88 07:04:10 GMT References: <4470006@hpindda.HP.COM> Sender: news@ccncsu.ColoState.EDU Reply-To: dempsey@handel.colostate.edu..UUCP (Steve Dempsey) Organization: Colorado State University, Ft. Collins CO 80523 Lines: 22 In article <4470006@hpindda.HP.COM> kmont@hpindda.HP.COM (Kevin Montgomery) writes: > >Hate to be this cluelessly stupid, but something's been bugging the >hell out of me- how do you do the Bourne : > > a.out 1> file.stdout 2> file.stderr > >in the csh? ("a.out > file.stdout >& file.stderr" doesn't cut it, >since ">&" is defined to be BOTH stdout and stderr, hence is an >ambiguous redirection) > adv -thanks- ance, > kevin, normally not so clueless This is far from obvious, so no need to feel cluelessly stupid: ( a.out > file.stdout ) >& file.stderr /\ \Steve Dempsey, Center For \steved@longs.LANCE.ColoState.Edu \/ _|/ _ _\Computer Assisted Engineering\dempsey@handel.CS.ColoState.Edu /\ | (_) | |_(_)\Colorado State University \...!ncar!handel!dempsey /_/_/(_/\_/ V \_ \Fort Collins, CO 80523 \(303)-491-0630