title: grep between two files
body: <p>I want to find matching lines from file 2 when compared to file 1.</p>
  
  <p>file2 contains multiple columns and column one contains information that could match file1.</p>
  
  <p>I tried below commands and they didn't give any matching results (contents in file1 are definitely in file2)  . I have used these commands previously to compare between different files and they worked. </p>
  
  <pre><code>grep -f file1 file2
  grep -Fwf file1 file2
  </code></pre>
  
  <p>When i tried to grep whatever that's not matching, i get results</p>
  
  <pre><code>grep -vf file1 file2 
  </code></pre>
  
  <p>file1 contains list of genes (754 genes) , one line each</p>
  
  <pre><code>ATM
  ATP5B
  ATR
  ATRIP
  ATRX
  </code></pre>
  
  <p>I have a feeling the problem is with my file1. When I tried to type several items manually in my file1 just to test, and do grep with file2, I get the matching lines from file2.</p>
  
  <p>When I copied the contents of file1 (originally in excel) into notepad making a .txt file, I didn't get any matching results.</p>
  
  <p>I can't see any problem with my file1. Any suggestion? </p>