I have a file that looks like this:
G. KRESSLAR
9618 W. APPALOOSA DRIVE
SUN CITY, AZ 85373
SHIRLEY ALLEN
7272 W. VIA MONTOYA DRIVE
GLENDALE, AZ 85310
LOUIS VALDEZ
244441 N. 86TH AVENUE
PEORIA, AZ 85383
DONNA NEWBON
3231 W. DENTON #D
PHOENIX, AZ 85017
SARAH WILSON
6534 W. PALO VERDE
GLENDALE, AZ 85302
W. GRISAMORE
10017 W. PALMER
SUN CITY, AZ 85351
What I need to do is join each set of three lines, separated by a comma, so that it looks like this:
G. KRESSLAR, 9618 W. APPALOOSA DRIVE, SUN CITY, AZ 85373
SHIRLEY ALLEN, 7272 W. VIA MONTOYA DRIVE, GLENDALE, AZ 85310
LOUIS VALDEZ, 244441 N. 86TH AVENUE, PEORIA, AZ 85383
DONNA NEWBON, 3231 W. DENTON #D, PHOENIX, AZ 85017
SARAH WILSON, 6534 W. PALO VERDE, GLENDALE, AZ 85302
W. GRISAMORE, 10017 W. PALMER, SUN CITY, AZ 85351
Is there a simple sed or awk solution to this?
Thanks in advance for your help.