RE: shell question

[ Available lists | Index of freebsd-questions | Month of Apr 2005 | Week of 5 Apr 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Björn König <bkoenig@cs.tu-berlin.de>
Date
5 Apr 2005 17:26:28
Subject
RE: shell question
Message-ID
20050405172621.7155D12B015@eurystheus.local

In reply to
Referenced by

[ Hide this part ]
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 stdout >> 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 Bjrn


Elapsed time: 0.283 seconds