I have a text file that contains separate lines where this text will always appear, short_message=<some text>. The <some text> part could potentially be different on every line. What I'd like to do is extract the <some text> text and only that text from the file. I don't want the text after the comma following <some text>. I would simply like to extract and redirect this text to another file.
An example of the line is as follows:
..., short_message=<some text>, product_code=xxx_xxx_xxx_xxx_x, subscription_action=SYSTEM, MESSAGE_FORMAT_TYPE=TEXT}}}
I've tried sed, grep, even awk, but I'm no expert on these tools and simply cannot find a way to get only the text I'm looking for. Hoping someone can help.