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: Unix question

Re: Unix question

From: Good DBA <good_dba_at_hotmail.com>
Date: Mon, 8 Mar 2004 21:17:20 -0800
Message-ID: <BAY14-DAV218pEDTiAz0002654e@hotmail.com>


did you try
in vi

:set nu -- this will give you the line numbers.. :1,$/^/'/g --- here $ = last line.. you can give the last line number -1 could be 300

Hope this helps.

Nikunj

> www.unix.com
>
> or try escaping the character
>
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of
> manoj.gurnani_at_polaris.co.in
> Sent: 08 March 2004 07:28
> To: oracle-l_at_freelists.org
> Subject: Unix question
> Importance: High
>
> Hi,
> I want to put a single quote before each line except last line
> Using sed filter .
> I want this in a single expression.
> How can I achieve the desired o/p.
>
> Thanks
> Manoj
>
>
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Mar 08 2004 - 23:04:52 CST

Original text of this message

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