vCard lines can be folded by inserting "\r\n " (that's a space at the start of the new line), but I'm struggling to unfold them with the line-oriented GNU tools (sed, cut). Any ideas? Effectively, from the string
foo
bar
baz
ban
bay
bal
it must return
foobar
baz
banbaybal