I need to extract a number inbetween two strings from a very long compplicated input which includes many special characters, so I don't know how to seperate them when using sed or awk to extract just the number from "pk" (from the example below the output should look like this: 19473
so my input looks similar to this:
{"pagination":{"next":0,"previous":0,"count":1,"current":1,"total_pages":1,"start_index":1,"end_index":1},"results":[{"pk":19473,"username":"someuser12.999name","name":"someuser12.999name","is_active":true,"last_login":null,"is_superuser":false,"groups":[],"groups_obj":[],"email":"someuser12.999name@domain.tld","avatar":"https://secure.gravatar.com/avatar/