title: Find common and unique items between two arrays
body: <p>I use ec2.py dynamic inventory script with ansible to extract a list of ec2 hosts and their tag names. It returns me a list of JSON as below, </p>
  
  <pre><code>  "tag_aws_autoscaling_groupName_asg_test": [
      "aa.b.bb.55",
      "1b.b.c.d"
    ],
  
    "tag_aws_autoscaling_groupName_asg_unknown": [
      "aa.b.bb.55",
      "1b.b.c.e"
    ],
  </code></pre>
  
  <p>I'm using jq for parsing this output. </p>
  
  <ol>
  <li>How can I extract only fields common to both these ASG?</li>
  <li>How can I extract only fields unique to both these ASG?</li>
  </ol>