[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue in parsing the strings in python code

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:

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