[TriLUG] Stupid VI question

Byarlay, Wayne A. wab at purdue.edu
Wed Feb 8 10:48:02 EST 2006


No such thing as a stupid VI question.

Only stupid VI answers.

Just Kidding! =)

WAB 

-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On
Behalf Of U. Jason Gloege Jr.
Sent: Wednesday, February 08, 2006 10:39 AM
To: Triangle Linux Users Group discussion list
Subject: Re: [TriLUG] Stupid VI question

i've frequently been able to do that with:

%s/,/\r/g

enjoy.



On 2/8/06, Rick DeNatale <rick.denatale at gmail.com> wrote:
> So, I'm trying to grok VI, really I am.
>
> The other day I had a file of e-mail addresses, separated by commas. I

> wanted to put each one on it's own line.
>
> So I fired up vi(m) figuring this would be easy, just do a global 
> change of comma to new line with something like:
>
> :%s/,/*nl*/g
>
> I couldn't figure out how to represent a new line in the substitution.
> Surely this is possible, isn't it?  What's the right thing to replace
*nl*?
>
> --
> Rick DeNatale
>
> Visit the Project Mercury Wiki Site
> http://www.mercuryspacecraft.com/
> --
> TriLUG mailing list        :
http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/ TriLUG Member 
> Services FAQ : http://members.trilug.org/services_faq/
>
-- 
TriLUG mailing list        :
http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/ TriLUG Member
Services FAQ : http://members.trilug.org/services_faq/



More information about the TriLUG mailing list