[PLUG] To the VI Question

Sean Whitney sean at fork.com
Mon Jul 15 20:03:37 UTC 2002


Actually that worked for me

:%s/\n/,/

However more correct is 

% - apply to all lines in the file
s - substitute

Sean

On Monday 15 July 2002 12:14, you hammered at the keyboard:
> Hmmm...  that just replaced all the letter n's with a comma.
>
> On Mon, 15 Jul 2002, Jason Dagit wrote:
> > I deleted the email so quick that I can't reply, but here how I did it:
> > :%s/\n/, /
> >
> > or
> >
> > :%s/\n/,/
> >
> > depends on if you want the extra space.
> >
> > The idea is that %s is the whole file, \n is the end of line.
> >
> > I hope this helps.
> > Jason
> >
> >
> > _______________________________________________
> > PLUG mailing list
> > PLUG at lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
I wish there was a knob on the TV to turn up the intelligence.  There's a
knob called "brightness", but it doesn't seem to work.
		-- Gallagher




More information about the PLUG mailing list