title: Search IP from a text file in .csv log file, if found add new column next to it
body: <p>I need a shell script that finds IP addresses from a text file inside a .csv log file, and if it found the results, it'll make a new column on the right side of the csv file, calling it &quot;SUSPICIOUS&quot;</p>
  <p>So far, I came up with this command:</p>
  <pre><code>cat *.csv | grep --color=always -z -w -f 'list.txt' | sed 's/^/SUSPICIOUS, /' &gt; *.csv
  </code></pre>
  <p>There are 2 problems with this:</p>
  <ol>
  <li><p>It creates SUSPICIOUS column on every row</p>
  </li>
  <li><p>It creates new column on left side instead of right side</p>
  </li>
  </ol>
  <p>(If I use regular grep expression, it'll only save the results containing those IP addresses, I need every single row of the logs)</p>