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: Eric Buddelmeijer <Eric.Buddelmeijer_at_elegant.nl>
Date: Mon, 6 Jun 2005 21:29:11 +0200
Message-ID: <EMENJINPLCPACJBIAEFBKEEDCJAA.Eric.Buddelmeijer@elegant.nl>


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.

-----Oorspronkelijk bericht-----

Van: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]Namens Post, Ethan Verzonden: maandag 6 juni 2005 18:46
Aan: oracle-l_at_freelists.org
Onderwerp: Spool To More than 1 File

One thing I would like to see is the ability to spool output from SQL*Plus to more than one file at a time. I am writing a script in which I am spooling the results of each command to "foo" and then grepping the foo file for the elapsed time and putting it in a log file using "!grep ...". The problem with this method is that I can't spool the results of the entire script to another file in the event I want to see the detail. I could use some "cat" commands to keep moving the results but this seems like a pretty easy and perhaps usefull feature.
--

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

--

http://www.freelists.org/webpage/oracle-l Received on Mon Jun 06 2005 - 15:37:36 CDT

Original text of this message

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