title: Given an array with filenames, how to find and delete all matching files in bash?
body: <p>Given a blacklist.txt file with filenames:</p>
  <pre><code>.picasa.ini
  Thumbs.db
  ._.DS_store
  </code></pre>
  <p>How can I best find files with those filenames and delete them? I tried:</p>
  <pre><code>readarray -t blacklisted &lt; ./Blacklist.txt
  for n in ${blacklisted[@]};do find . -type f -name &quot;${n}&quot; -delete; done
  </code></pre>
  <p>But it doesn't work for me.</p>