Need to parse output of a command in python. The command returns something like this
A:
2 bs found
3 cs found
B:
1 a found
3 bs found
C:
1 c found
D:
2 es found
3 fs found
Need to able to do the following with the output:
access a.bs found b.a found. c.d.es found and so on.
How do I do this python? What data structure is best suited to do this?
The goal of this exercise is to run the command every 10 secs and identify a diff of what's changed
ctrl+k.{{{and}}}actually part of your output, or was that an attempt to make it a code block?{'A':{'b':2,'c':3}, 'B':{'a':1,'b':3}, 'C':{'c':1, D: {'e': 2,'f':3}}}