Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Spool To More than 1 File

RE: Spool To More than 1 File

From: Post, Ethan <Ethan.Post_at_ps.net>
Date: Mon, 6 Jun 2005 14:33:54 -0500
Message-ID: <E5D2567DDF0D03428A15664A78CA473C9EEC27@pscdalpexch02.perotsystems.net>


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_at_elegant.nl]=20 Sent: Monday, June 06, 2005 2:29 PM
To: Post, Ethan; oracle-l_at_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
Received on Mon Jun 06 2005 - 15:39:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US