I'm trying to do following, if I have the following ERROR line in log file:
Aug 9 12:44:39 hostnameABC gnome-terminal-[12581]: Theme parsing error: gtk.css:6765:28: Missing opening bracket in color definition
i need to end up with a dictionary (python), that looks like this:
gnome-terminal-[1258] = {ERROR: 1}
And if there was already such an dictionary in scope, then ERROR += 1 . Finally print the dictionary name and Key Value.
Is this even possible ?