title: Diffing two text files while excluding leading spaces and trailing commas
body: <p>Is there any way to check if the file1 has any different content than file2 excluding leading spaces and trailing commas.</p>
  
  <p>File1:</p>
  
  <pre><code>1  
    2  
  3,  
  4  
  5  
  </code></pre>
  
  <p>File2:  </p>
  
  <pre><code>1  
  2  
  3  
  5  
  </code></pre>
  
  <p>If I run:</p>
  
  <pre><code>awk 'FNR==NR{a[$0]++;next}!($0 in a)' file2 file1
  </code></pre>
  
  <p>it is returning 2 3, 4. But we need it to return only  4.</p>