I have a TON of data in a .txt file formatted like so...
WOODY, Harlan Fred S2c USN
WOOD, Earl A. PVT USAR
WOOD, Frank S2c USN
WOOD, Harold Baker BM2c USN
WOOD, Horace Van S1c USN
WOOD, Roy Eugene F1c USN
WOOLF, Norman Bragg CWTP USN
WORKMAN, Creighton Hale F1c USN
I would like to get it into a csv format like so...
WOODY,Harlan Fred,S2c,USN
I see in Python I can use regex and/or split, but I need to preserve the spaces between the first and last names. As you can see, the space count is different between most of the entries and the occasional tab may appear as well (I think).