skip to Main Content

Json – get a value with jq by matching one of parent value from a variable

I have JSON data as below, in services.json { "checkout-serviceA":{"prId":6644,"Sourcebranch":"","HFX":false,"IS_CR":"Yes"}, "checkout-serviceB":{"prId":15826,"Sourcebranch":"","HFX":false,"IS_CR": "no"}, "checkout-toggle":{"prId":8963,"Sourcebranch":"","HFX":true,"IS_CR": "Yes"}, "checkout-res":{"prId":1104,"Sourcebranch":"","HFX":false,"IS_CR": "Yes"} } I have a variable eg $PRID that contains prID value already. I want to pass this to jq and fetch or get an…

VIEW QUESTION

How to find out all <a> tag links and names from html file – Ubuntu

Here is a test file contains links and names within the <a></a> tags. /tmp/test_html.txt <tr> <td><a href="http://www.example.com/link1">example link 1</a></td> </tr> <tr> <td><a href="http://www.example.com/link2">example link 2</a></td> </tr> <tr> <td><a href="http://www.example.com/link3">example link 3</a></td> </tr> <tr> <td><a href="https://www.example.com/4/0/1/40116601-1FDC-real-world-link/bar" target="_blank" class="real-world-class">Real World Link</a>&nbsp;</td> </tr>…

VIEW QUESTION
Back To Top
Search