title: print all duplicates in not well formatted csv
body: <p>I have a huge csv file (~17GB) and I need to create new file that contains all rows that the value of the last column appear more than once, unfortunately, the file is not well formatted. There are values that contains commas, like line 6 in the below example:</p>
  <pre><code>entity,entity_type,component_id
  bla@gmail.com,email,1111
  lalal@hotmail.com,email,2222
  15158112233,phone,3333
  15158990000,phone,2222
  hello,world@gmail.com,email,3333
  1327168,phone,4444
  fds_213445,device,3333
  </code></pre>
  <p>for the following example I would expect this new file:</p>
  <pre><code>lalal@hotmail.com,email,2222
  15158990000,phone,2222
  15158112233,phone,3333
  hello,world@gmail.com,email,3333
  fds_213445,device,3333
  </code></pre>
  <p>I currently use a naive solution of:</p>
  <ol>
  <li>Count the size of each component and store in file A.</li>
  <li>Remove from file A all components with size = 1.</li>
  <li>Running in a script over all component_ids in file A print the match lines from the original file to new result file.</li>
  </ol>
  <p>But, as I said, this solution is very naive and it's running for a very long time (almost a week and still running...)</p>
  <p>How could I create new file contains all lines with component_id appear more than once in bash, and in efficient way?</p>