title: How to delete the line which matches the string shared in array
body: <p>I have a file which consist of text like below</p>
  
  <pre><code>compile_tool/opt/CSDTK/bin/chipgen/Modem2G/toolpool/plugins/Calib/libcalibplugin.so
  compile_tool/opt/CSDTK/bin/chipgen/Modem2G/toolpool/plugins/Calib/libcalibplugin.dill
  compile_tool/opt/CSDTK/bin/lib/ruby/gems/1.8/gems/builder-2.1.2/Rakefile.pg
  compile_tool/opt/mingw32_3.4.4/usr/i586-mingw32msvc/include/mmsystem.c
  compile_tool/opt/mingw32_3.4.4/usr/i586-mingw32msvc/include/winnt.h
  compile_tool/opt/CSDTK/bin/lib/ruby/gems/1.8/gems/builder-2.1.2/test/test_xchar.HEX
  </code></pre>
  
  <p>I want to delete the line which is having file extension .so , .dill ,.pg and .HEX. i have tried below code but didn't make out.</p>
  
  <pre><code>#! /bin/bash
  array=(.a .so .bin.ihex .dll .exe .gem .bin .png .HEX)
  for a in "${array[@]}"
  do 
  sed -i -e "/\$a\b/d" copyright
  done 
  </code></pre>