Issue in parsing the strings in python code

srinivasan srinivasan.rns at gmail.com
Mon Nov 12 04:23:58 EST 2018


Hi Thomas,

Great to hear from you, Could you please let me know how do I get the UUID
"1da7d068-4548-4446-bf88-a440e49db1b1" by passing the name of the SSID
"Funkloch' using "nmcli --terse" ??

Many thanks in advance,
Srini

On Mon, Nov 12, 2018 at 9:59 AM Thomas Jollans <tjol at tjol.eu> wrote:

> 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
>



More information about the Python-list mailing list