title: Linux CLI - How to get substring from JSON jq + grep?
body: <p>I need to pull a substring from JSON.  In the JSON doc below, I need the end of the value of <code>jq '.[].networkProfile.networkInterfaces[].id'</code>  In other words, I need just <code>A10NICvw4konls2vfbw-data</code> to pass to another command.  I can't seem to figure out how to pull a substring using grep.  I've seem regex examples out there but haven't been successful with them.</p>
  
  <pre><code>[
    {
      "id": "/subscriptions/blah/resourceGroups/IPv6v2/providers/Microsoft.Compute/virtualMachines/A10VNAvw4konls2vfbw",
      "instanceView": null,
      "licenseType": null,
      "location": "centralus",
      "name": "A10VNAvw4konls2vfbw",
      "networkProfile": {
        "networkInterfaces": [
          {
            "id": "/subscriptions/blah/resourceGroups/IPv6v2/providers/Microsoft.Network/networkInterfaces/A10NICvw4konls2vfbw-data",
            "resourceGroup": "IPv6v2"
          }
        ]
      }
    }
  ]
  </code></pre>