Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!MCIRPS2.MED.NYU.EDU!karron From: karron@MCIRPS2.MED.NYU.EDU Newsgroups: comp.sys.sgi Subject: Pipe input file redirection. Message-ID: <9009262123.AA24525@mcirps2.med.nyu.edu> Date: 26 Sep 90 19:34:26 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron%CMCL2.NYU.EDU@cunyvm.cuny.edu Organization: The Internet Lines: 24 X-Unparsable-Date: Wed, 26 Sep 90 14:23:41 DSD How do I pipe the stdout and stderr files from a collection of programs into the stdin of another program ? This does not work. #! /bin/sh ( BMDstat $1 2>1 od -d $1 2048. d ) | more I am still, after all these years, mystified by sh and file numbers. Is there a similar incantation for pipes ? dan. +-----------------------------------------------------------------------------+ | karron@nyu.edu Dan Karron | | . . . . . . . . . . . . . . New York University Medical Center | | 560 First Avenue \ \ Pager <1> (212) 397 9330 | | New York, New York 10016 \**\ <2> 10896 <3> | | (212) 340 5210 \**\__________________________________________ | +-----------------------------------------------------------------------------+