extracting with sed

  • From: Mohammed Mehraj Hussain <mhdmehraj@xxxxxxxxx>
  • To: oracle-l <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 5 Feb 2010 15:47:14 +0530

Hi all,

i have a log file which consists of the below text

Code:

SQL> @.[%OSAUTH_PREFIX_DOMAIN%]
SP2-0310: unable to open file ".[FALSE]"
SQL> spool off


From this file i need to extract the text from the second line in between []
(i.e) False and need to put this output to a another file...

How can i do this with SED command

Other related posts: