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. -- https://mail.python.org/mailman/listinfo/python-list