Re: Semi-OT: Vi Question/Need

From: Nuno Souto <dbvision_at_iinet.net.au>
Date: Sun, 17 Mar 2013 21:35:07 +1100
Message-ID: <51459C5B.9000206_at_iinet.net.au>



cut would be my first choice too.

cut -c1-40 {fname} > {newfnam}
will cut the first 40 columns of all lines of fname and drop the result in newfname (omit the {}).

-- 
Cheers
Nuno Souto
dbvision_at_iinet.net.au


On 17/03/2013 12:51 PM, Mark W. Farnham wrote:

> 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.
>
>
-- http://www.freelists.org/webpage/oracle-l
Received on Sun Mar 17 2013 - 11:35:07 CET

Original text of this message