Friday, September 16, 2005

saving a set of data from a file to another file in Vi editor

Re: saving a set of data from a file to another file in Vi editor

What do you mean by save? Save to a new file?

Try:

:25,45w/some/path/filename

Brian

>
> Hi Gurus,
>
>
>
> Do you know in Vi, how to save the data from one line to another?
>
> I mean I want to save data from line 25 to line 45, whereas the file
> contains 500 lines.
>
> How I can achieve this? I want to do this when I am in vi in the edit/read
> only mode.
>
>
>
> Thanks & Rgds,
>
> Narayan
>

0 Comments:

Post a Comment

<< Home