Pipe input file redirection.

John H Merritt merritt at iris613.gsfc.nasa.gov
Thu Sep 27 19:11:18 AEST 1990


In article <9009262123.AA24525 at mcirps2.med.nyu.edu> karron%CMCL2.NYU.EDU at cunyvm.cuny.edu writes:
>
>How do I pipe the stdout and stderr files from a collection of programs
>into the stdin of another program ?
>
[ example deleted ]

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

With csh:
(cat no_file1; cat no_file2) |& od -xc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John H. Merritt                   #  Yesterday I knew nothing,
Applied Research Corporation      #  Today I know that.
merritt at iris613.gsfc.nasa.gov     #



More information about the Comp.sys.sgi mailing list