[TriLUG] Stupid VI question
U. Jason Gloege Jr.
ujgloege at gmail.com
Wed Feb 8 10:39:01 EST 2006
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/
>
More information about the TriLUG
mailing list