shell question
Eduardo Viruena Silva
mrspock at esfm.ipn.mx
Wed Apr 6 08:27:58 PDT 2005
On Tue, 5 Apr 2005, Björn König wrote:
> mrspock at esfm dot ipn dot mx wrote:
>
> > I need to concatenate the standard output and then
> standard
> > error output in a file, but I need to convert the standard
>
> > output into PostScript before the concatenation.
> >
> > program <stdin >stdout 2> stderr
> > cat stdout > out
> > a2ps stderr >> out
> >
> > a2ps is in the ports and it converts plain text into
> PostScript.
> >
> > The problem is that I don't want to use the temporary file
>
> > that I used above (stdout, stderr, out), I just want a
> "filter"
>
> program < stdin 3>&1 1>&2 2>&3 | a2ps
>
> Regards Björn
>
Thanks for your help, Björn.
I think I'd better study a little more this redirection operators.
Thanks again.
Eduardo.
More information about the freebsd-questions
mailing list