Solved

How to connect ORACLE and unix

Posted on 1998-11-17
3
340 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

932 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

9 Experts available now in Live!

Get 1:1 Help Now