RE: Semi-OT: Vi Question/Need

From: Mark W. Farnham <mwf_at_rsiz.com>
Date: Sat, 16 Mar 2013 21:51:03 -0400
Message-ID: <01dd01ce22b1$e30dc7d0$a9295770$_at_rsiz.com>



I think you mean from a character position to the end of the line for all lines?

I'd probably use sed or awk, whichever you know better, or cut, I suppose, but I use cut so rarely I have to look up the syntax.

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Yong Huang
Sent: Saturday, March 16, 2013 12:15 PM
To: Christopher.Taylor2_at_parallon.net
Cc: oracle-l_at_freelists.org
Subject: Re: Semi-OT: Vi Question/Need

> 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


--
http://www.freelists.org/webpage/oracle-l
Received on Sun Mar 17 2013 - 02:51:03 CET

Original text of this message