Trying to combine multiple lines if it doesn't have an end of message string. Would also like to remove the prefix on all but the first line.
b929e3e1-29db this is a long message that abc074df-48a1 is continued onto multiple dfd4c683-ab48 lines#EOM ff513a72-570d this is a short message#EOM 980d10aa-bbed another short message#EOM
b929e3e1-29db this is a long message that is continued onto multiple lines ff513a72-570d this is a short message 980d10aa-bbed another short message
Ideally using common tools available via command line. (ex: awk, sed)