No such thing as a stupid VI question. Only stupid VI answers.
Just Kidding! =) WAB -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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/ -- 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/
