Given a data file which contains various content, I would like to first ignore any line that does not start with an IP address, then output the IP address followed by any string found in the braces that does not contain an = sign. Any given line may have one or multiple strings.
For example:
INPUT:
junk12
junk34
198.0.12.20 [ joker penguin character=villian ] blah
198.0.13.20 [ super_man bat_man character=hero ] blah
198.0.14.20 [ lois_lane character=damsel ] blah
junk56
junk78
OUTPUT:
198.0.12.20 joker
198.0.12.20 penguin
198.0.13.20 super_man
198.0.13.20 bat_man
198.0.14.20 lois_lane