I have a file I need to echo text into at the end of the file from the command line, the problem is the data is in a stanza, all within curly braces. This is the end of the file:text-string1,text-string2,text-string3;}I need to be able to insert text after text-string3, but still keep it inside the semi-colon and brace. Like this:text-string1,text-string2,text-string3,new-text-string;}What is the best way to accomplish this from command line?
Insert text inside stanza at the end of the data string
text processing;awk;sed;text formatting