Issue in parsing the strings in python code

Thomas Jollans tjol at tjol.eu
Mon Nov 12 03:57:09 EST 2018


On 12/11/2018 09:28, srinivasan wrote:
> Dear Python Experts team,
> 
> This question might be very simple for you, As am newbie to python, could
> you please how to parse the below strings
> 
> [snip]
> 
> 
> root:~/qa/robot_tests# nmcli c show

Pro tip: many *nix tools have a flag that makes them produce
machine-readable output. E.g.: from the nmcli man page:

OPTIONS
       -t | --terse
           Output is terse. This mode is designed and suitable for
computer (script) processing.



More information about the Python-list mailing list