title: not equal to operator with awk
body: <p>I am not sure what wrong I am doing but I am certainly making some mistake with my awk command.</p>
  
  <p>I have two files, fileA contains names</p>
  
  <p>FileA</p>
  
  <pre><code>Abhi
  Roma
  GiGi
  KaKa
  </code></pre>
  
  <p>FileB contains other data with names</p>
  
  <pre><code>Abhi 23  Pk
  DaDa 43  Gk
  Roma 33  Kk
  PkPk 22  Aa
  </code></pre>
  
  <p>Now, I trying to print the details of all the names that are absent in fileA.</p>
  
  <pre><code>for i in `cat FileA` ; do cat FileB | awk '{ if ($1!='$i') print $0_}'&gt;&gt; Result; done
  </code></pre>
  
  <p>What I get is</p>
  
  <pre><code>Abhi    23  Pk
  DaDa    43  Gk
  Roma    33  Kk
  PkPk    22  Aa
  Abhi    23  Pk
  DaDa    43  Gk
  Roma    33  Kk
  PkPk    22  Aa
  Abhi    23  Pk
  DaDa    43  Gk
  </code></pre>
  
  <p>Desired output</p>
  
  <pre><code>DaDa 43  Gk
  PkPk 22  Aa
  </code></pre>
  
  <p>Could anyone help me in finding out the error.</p>
  
  <p>Thank you</p>