> I don't know if anyone is interested in...
>
> rewritten withouth sed and awk
Great! That looks much simpler now.
But depending on attribute order is bad, so I would use the following instead:
TICKET=${DATA//\"/}
TICKET=${TICKET##*ticket:}
TICKET=${TICKET%%,*}
CSRF=${DATA//\"/}
CSRF=${CSRF##*CSRFPreventionToken:}
CSRF=${CSRF%%,*}
I guess that would also work?
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user