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 ----- Original Message ----- From: "David Sharples" <dsharples@xxxxxxxxxxxxxxxxxxxxx> To: <oracle-l@xxxxxxxxxxxxx> Sent: Monday, March 08, 2004 12:34 AM Subject: RE: Unix question > www.unix.com > > or try escaping the character > > -----Original Message----- > From: oracle-l-bounce@xxxxxxxxxxxxx > [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of > manoj.gurnani@xxxxxxxxxxxxx > Sent: 08 March 2004 07:28 > To: oracle-l@xxxxxxxxxxxxx > 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@xxxxxxxxxxxxx > put 'unsubscribe' in the subject line. > -- > Archives are at //www.freelists.org/archives/oracle-l/ > FAQ is at //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@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------