title: Using cut and grep commands in unix
body: <p>I have a file (file1.txt) with text as:</p>
  
  <pre><code>aaa,,,,,
  aaa,10001781,,,,
  aaa,10001782,,,,
  bbb,10001783,,,,
  </code></pre>
  
  <p>My file2 contents are:</p>
  
  <pre><code>11111111
  10001781
  11111222
  </code></pre>
  
  <p>I need to search second field of file1 in file2 and delete the line from file1 if pattern is matching.So output will be:</p>
  
  <pre><code>aaa,,,,,
  aaa,10001782,,,,
  bbb,10001783,,,,
  </code></pre>
  
  <p>Can I use grep and cut commands for this?</p>