Solved

How to connect ORACLE and unix

Posted on 1998-11-17
3
335 Views
Last Modified: 2010-04-21
please tell me how to create file that is the search result of
sql(oracle) in shell.
and how to use awk and sed to reedit it ??

thank you!
0
Comment
Question by:alcatelld
3 Comments
 

Author Comment

by:alcatelld
ID: 2007905
Edited text of question
0
 
LVL 2

Expert Comment

by:seedy
ID: 2007906
Use the SQL*Plus commands
spool <filename>  - to start spooling
spool off  - to stop spooling.
Use this file with awk and sed!
0
 
LVL 3

Accepted Solution

by:
braveheart earned 50 total points
ID: 2007907
Then see the man pages for nawk because they are far more understandable than those for awk. The sed man pages are not too helpful so why not visit the seder's grab bag at http://www.wollery.demon.co.uk/. nawk is likely to be more use for table output, though.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now