Article 6JZ9Q newline after each string match

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
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments