Path: utzoo!attcan!uunet!aplcen!haven!adm!smoke!brl.mil!moss From: moss@brl.mil (Gary S. Moss (VLD/VMB) ) Newsgroups: comp.sys.sgi Subject: Re: Pipe input file redirection. Message-ID: <13988@smoke.BRL.MIL> Date: 1 Oct 90 14:29:41 GMT References: <9009262123.AA24525@mcirps2.med.nyu.edu> <3502@dftsrv.gsfc.nasa.gov> Sender: news@smoke.BRL.MIL Reply-To: moss@brl.mil Organization: Ballistic Research Laboratory Lines: 18 In article <3502@dftsrv.gsfc.nasa.gov>, merritt@iris613.gsfc.nasa.gov (John H Merritt) writes: |> In article <9009262123.AA24525@mcirps2.med.nyu.edu> karron%CMCL2.NYU.EDU@cunyvm.cuny.edu writes: |> >How do I pipe the stdout and stderr files from a collection of programs |> >into the stdin of another program ? |> |> Assume no_file1 and no_file2 don't exist; 'cat' writes to 2. |> |> With sh: |> (cat no_file1; cat no_file2) 2>&1 | 1<&2 od -xc Well, I'm, not sure why, but this results in the output from "od" being on stderr; when reading TFM about the "1<&2" construct it sheds no light on reality. Anyway, the following is sufficient to dup stderr from the subshell to its stdout for the Bourne shell: (cat no_file1; cat no_file2) 2>&1 | od -xc