I want to extract the value of pt & userId in a variable in shell script.
I've below value set in a varibale which comes dynamically & need to extract pt & userId
{"pt":"PT-24fesxPGJIHOe714iaMV-13dd3872781-sin_pos","userId":"66254363666003"}
Can any one tell me how to extract these values in shell script?
Note: I don't want to use JSON parser just to parse 2 strings.
Thanks!