a.out 1> file.out 2> file.err in csh?
Steve Dempsey
dempsey at handel.colostate.edu.
Wed Oct 26 17:04:10 AEST 1988
In article <4470006 at hpindda.HP.COM> kmont at 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 at longs.LANCE.ColoState.Edu
\/ _|/ _ _\Computer Assisted Engineering\dempsey at handel.CS.ColoState.Edu
/\ | (_) | |_(_)\Colorado State University \...!ncar!handel!dempsey
/_/_/(_/\_/ V \_ \Fort Collins, CO 80523 \(303)-491-0630
More information about the Comp.unix.wizards
mailing list