• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

How to connect ORACLE and unix

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
alcatelld
Asked:
alcatelld
1 Solution
 
alcatelldAuthor Commented:
Edited text of question
0
 
seedyCommented:
Use the SQL*Plus commands
spool <filename>  - to start spooling
spool off  - to stop spooling.
Use this file with awk and sed!
0
 
braveheartCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now