title: Awk, compare 2 files and write out incomparables
body: <p>I usually use </p>
  
  <pre><code>awk BEGIN {FS=" "} NR==FNR{arry[$1]=$0; next} $1 in array &amp;&amp; $0=arr[$1] FS in fields infile1 infile2 &gt; outfile 
  </code></pre>
  
  <p>to extract common fields in 2 files based on field of interest. But this time I need incomparables. I have 2 files with equal lines but 200 lines in the second file do not have the same coding as in <code>file1</code>.</p>
  
  <p>I tried to : </p>
  
  <pre><code>paste f1 f2 | sort -n -k1,2
  </code></pre>
  
  <p>by both fields hoping to get <code>$1==$2</code> and take unequal fields but I don't get <code>$1==$2</code> even when there should be.</p>
  
  <p>How can I do this?</p>