[TriLUG] vi question
Greg Brown
gwbrown1 at gmail.com
Wed Jul 16 13:25:00 EDT 2008
I'm trying to match multiple commas in a line in vi so I can globally change
them to a single comma (yup, I'm building a .csv file).
Here's an example line::
,101.5000,WRAL,,,,,,,,,,,,,,,,,,,,,,Raleigh,,,,,,,,,,,,,,BF,,,,,,,,,,,,,,,,,,,,,,,Rock
The leading comma is ok, I really don't care about that, it's easy enough to
strip out.
:1,$s/\,+/\,/g is NOT working. Grr. Any hints? I know I'm overlooking
something extraordinarily simple here....
Greg
More information about the TriLUG
mailing list