From owner-freebsd-questions@FreeBSD.ORG Wed Apr 6 15:27:58 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2236616A4CE for ; Wed, 6 Apr 2005 15:27:58 +0000 (GMT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D5BF43D49 for ; Wed, 6 Apr 2005 15:27:57 +0000 (GMT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost.esfm.ipn.mx [127.0.0.1]) by Gina.esfm.ipn.mx (8.13.1/8.13.1) with ESMTP id j36FQF92018282; Wed, 6 Apr 2005 10:26:15 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)j36FQEAU018279; Wed, 6 Apr 2005 10:26:14 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Wed, 6 Apr 2005 10:26:14 -0500 (CDT) From: Eduardo Viruena Silva To: =?iso-8859-1?B?Qmr2cm4gS/ZuaWc=?= In-Reply-To: <20050405172621.7155D12B015@eurystheus.local> Message-ID: <20050406102407.O16224@Gina.esfm.ipn.mx> References: <20050405172621.7155D12B015@eurystheus.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-questions@freebsd.org Subject: RE: shell question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 15:27:58 -0000 On Tue, 5 Apr 2005, Bj=F6rn K=F6nig 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 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=F6rn > Thanks for your help, Bj=F6rn. I think I'd better study a little more this redirection operators. Thanks again. =09Eduardo.