From oracle-l-bounce@freelists.org  Mon Jun  6 15:39:04 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j56Kd473015415
 for <oracle-l@orafaq.com>; Mon, 6 Jun 2005 15:39:04 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j56Kd4Ni015411
 for <oracle-l@orafaq.com>; Mon, 6 Jun 2005 15:39:04 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B2B661BBE26;
 Mon,  6 Jun 2005 14:35:54 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 11529-08; Mon, 6 Jun 2005 14:35:54 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3D74A1BBD3C;
 Mon,  6 Jun 2005 14:35:54 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Subject: RE: Spool To More than 1 File
Date: Mon, 6 Jun 2005 14:33:54 -0500
Message-ID: <E5D2567DDF0D03428A15664A78CA473C9EEC27@pscdalpexch02.perotsystems.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Spool To More than 1 File
Thread-Index: AcVqzhB14FfgTcIzTf+g1Dv/tsuzogAAE6JQ
From: "Post, Ethan" <Ethan.Post@ps.net>
To: "Eric Buddelmeijer" <Eric.Buddelmeijer@elegant.nl>,
        <oracle-l@freelists.org>
X-OriginalArrivalTime: 06 Jun 2005 19:33:55.0117 (UTC) FILETIME=[AD2D6DD0:01C56ACE]
X-archive-position: 20711
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: Ethan.Post@ps.net
Precedence: normal
Reply-To: Ethan.Post@ps.net
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.63

Thanks, I am aware of a number of ways I could do this but thinking it
was rather short sited of Oracle to not add this into SQL*Plus directly,
this must be really easy to do. I would like to be able to do all this
completely within SQL*Plus.

-----Original Message-----
From: Eric Buddelmeijer [mailto:Eric.Buddelmeijer@elegant.nl]=20
Sent: Monday, June 06, 2005 2:29 PM
To: Post, Ethan; oracle-l@freelists.org
Subject: RE: Spool To More than 1 File

If you are using some sort of *nix, I just succeeded in getting two
files on
cygwin using tee:

cat <file_name> |tee out 1>out2

tee writes to the standard output (aka device 1) and to a file, in this
case
out. Redirect 1 to another file and you have split it all. I bet you can
'nest' it further using pipe and tee again. As long as you can spawn
processes.

Kind regards,
Eric.

--
http://www.freelists.org/webpage/oracle-l

