Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2005 19:27:05 +0200
From:      =?iso-8859-1?B?Qmr2cm4gS/ZuaWc=?= <bkoenig@cs.tu-berlin.de>
To:        <mrspock@esfm.ipn.mx>, <freebsd-questions@freebsd.org>
Subject:   RE: shell question
Message-ID:  <20050405172621.7155D12B015@eurystheus.local>
In-Reply-To: <63501.201.135.130.41.1112718721.squirrel@201.135.130.41>

next in thread | previous in thread | raw e-mail | index | archive | help
mrspock at esfm dot ipn dot mx wrote:

> I need to concatenate the standard output and then
standard=20
> error output in a file, but I need to convert the standard

> output into PostScript before the concatenation.
>=20
>           program <stdin >stdout  2> stderr
>           cat stdout > out
>           a2ps stdout >> out
>=20
> a2ps is in the ports and it converts plain text into
PostScript.
>=20
> 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=F6rn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050405172621.7155D12B015>