newline after each string match
by bishop2001 from LinuxQuestions.org on (#6JZ9Q)
hi i have a file that looks like:
something,weoefr0o[0980123-0] bbnu1 "219E"something,weo23ef0o[0980123-0] bbnu2 "21e9E"something,weoeeef0o[0980123-0] bbnu2 "219E"
each time i encounter the string "something" i want everything until the next "something" to be on a new line like
something,weoefr0o[0980123-0] bbnu1 "219E"
something,weo23ef0o[0980123-0] bbnu2 "21e9E"
something,weoeeef0o[0980123-0] bbnu2 "219E"
suggestions please? Thanks again
something,weoefr0o[0980123-0] bbnu1 "219E"something,weo23ef0o[0980123-0] bbnu2 "21e9E"something,weoeeef0o[0980123-0] bbnu2 "219E"
each time i encounter the string "something" i want everything until the next "something" to be on a new line like
something,weoefr0o[0980123-0] bbnu1 "219E"
something,weo23ef0o[0980123-0] bbnu2 "21e9E"
something,weoeeef0o[0980123-0] bbnu2 "219E"
suggestions please? Thanks again