I have a .txt file that is formatted like the below:
Artist 1, Artist 2, Artist 3,
Venue name,
City, State,
xx/xx/xxxx
Artist 4,
Venue name,
City, State,
xx/xx/xxxx
Variable number of artists per section, and a bunch of newlines in between each entry. I want to get to a point where I can import this into a spreadsheet with some sort of delimiter, such that I can have each section in it's own row (of which each row has four columns, which pertain to the four fields - artist, venue, location, date.)
Figure I need to:
- Replace all instances of
,\n
with some sort of delimiter - Remove all extra newline characters
...but can't seem to find a way to get this to work w/ sed
. Any help would be appreciated!