title: How to filter results from AWS CLI command
body: <p>How can I filter the following so just results with IP starting with 10.* are returned?</p>
  
  <pre><code>aws ec2 describe-instances --filters "Name=tag-value,Values=mytagavalue" --query 'Reservations[*].Instances[*].{InstanceId:InstanceId,PrivateDnsName:PrivateDnsName,State:State.Name, IP:NetworkInterfaces[0].PrivateIpAddress}'
  [
      [
          {
              "InstanceId": "i-12345bnmsdfod",
              "PrivateDnsName": "ip-10-34-24-4.my.there.com",
              "State": "running",
              "IP": "10.10.10.4"
          }
      ],
      [
          {
              "InstanceId": "i-12345bnmsdfop",
              "PrivateDnsName": "",
              "State": "terminated",
              "IP": null
          }
      ],
  </code></pre>