Re: Semi-OT: Vi Question/Need

From: <wblanchard_at_oshkoshcorp.com>
Date: Mon, 18 Mar 2013 11:21:13 -0500
Message-ID: <OFA0B7E874.BE8EF108-ON86257B32.0059C7E4-86257B32.0059D5CB_at_oshkoshcorp.com>



If this is just for a few lines, just open vi/vim and do a d$.

WGB From: Yong Huang <yong321_at_yahoo.com>

To:     Christopher.Taylor2_at_parallon.net
Cc:     oracle-l_at_freelists.org
Date:   03/16/2013 11:16 AM
Subject:        Re: Semi-OT:  Vi Question/Need
Sent by:        oracle-l-bounce_at_freelists.org



> What is the simplest way to delete from a line POSITION to end of
> line through the whole file?

Others have made good suggestions. If I need to make such vertical-editing, I would display the text in Windows console with a wide window size (I actually use the console version of sqlplus so in this case, it's already in the console). Then I vertically select the text I need.

Some editors support vertical editing, MS Word, UltraEdit, gVim, even MS Outlook. In these editors, you can select and delete the part you don't need.

But for a very big file, using some command is preferred.

Yong Huang

--
http://www.freelists.org/webpage/oracle-l





Although this e-mail and any attachments are believed to be free of any virus or other defect which might affect any computer system, it is the responsibility of the recipient to check that it is virus-free and the sender accepts no responsibility or liability for any loss, injury, damage, cost or expense arising in any way from receipt or use thereof by the recipient.

The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this transmission in error, please  contact the sender immediately, delete this material from your computer and destroy all related paper media.  Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties.
Thank you.

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Mar 18 2013 - 17:21:13 CET

Original text of this message