title: How to mark line in target file in case line matched
body: <p>my bash script read each line from file - /tmp/file.CSV until EOF</p>
  
  <p>And find if this line match  line in other file - /tmp/target.CSV ( in case of full match bash script need to add "+" in the beginning of the matched line )</p>
  
  <p>for example</p>
  
  <pre><code>  line="/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11" ( from /tmp/file.CSV )
  </code></pre>
  
  <p>we see that $line have full match with line:</p>
  
  <pre><code>    1,ull,LINUX,"/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11",fnt,rfdr,OK ( from /tmp/target.CSV )
  </code></pre>
  
  <p>then we need to add "+" on the line in <strong>/tmp/target.CSV</strong> as</p>
  
  <pre><code>   +1,ull,LINUX,"/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11",fnt,rfdr,OK
  </code></pre>
  
  <p>please advice how to do that with <strong>sed</strong> or <strong>awk</strong> or maybe <strong>perl one liner</strong> in my bash script</p>
  
  <pre><code> more /tmp/target.CSV
  
  
   1,ull,LINUX,"/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11",fnt,rfdr,OK
   2,Ama,LINUX,"/VPNfig/EME/EM8/Franlecom Eana SA/Amen",comrse,temporal,OK
   3,ArnTel,LINUX,"/VPConfig/EME/EM3/ArmenTem Armenia)/ArmenTe",Coers,FAIL
   4,Ahh,LINUX,"/VPConfig/EMA/EM/llk/AAe",Coers,FAIL
   142,ucell,LINUX,/VPNAAonfig/EMEA/EM3/Ucell/ede3fc34,Glo,G/rvrev443,OK
  
   more file.CSV
  
   /VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11
   /VPNfig/EME/EM8/Franlecom Eana SA/Amen
   /VPConfig/EME/EM3/ArmenTem Armenia)/ArmenTe
   /VPConfig/EME/EM0/TTR/Ar
   /VPNAAonfig/EMEA/EM3/Ucell/ede3fc34
  </code></pre>
  
  <p><strong>my bash code</strong></p>
  
  <pre><code> while read -r line
   do
  
   grep -iq "$line" /tmp/target.CSV 
  
   if [[  $? -ne 0 ]]
   then
         echo  "$line" NOT MATCH target.CSV
        else
  
       sed .................
  
       fi
   done &lt;  /tmp/file.CSV
  </code></pre>
  
  <p>Example of expected results (according to  the files /tmp/target.CSV  file.CSV )</p>
  
  <pre><code>     more /tmp/target.CSV
  
  
      +1,ull,LINUX,"/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11",fnt,rfdr,OK
      +2,Ama,LINUX,"/VPNfig/EME/EM8/Franlecom Eana SA/Amen",comrse,temporal,OK
      +3,ArnTel,LINUX,"/VPConfig/EME/EM3/ArmenTem Armenia)/ArmenTe",Coers,FAIL
       4,Ahh,LINUX,"/VPConfig/EMA/EM/llk/AAe",Coers,FAIL
  
  
  
  more file.CSV
  
  +/VPNfig/EME/EM3/Ucll/ucelobeconn/6EKoHH11
  +/VPNfig/EME/EM8/Franlecom Eana SA/Amen
  +/VPConfig/EME/EM3/ArmenTem Armenia)/ArmenTe
   /VPConfig/EME/EM0/TTR/Ar
  +/VPNAAonfig/EMEA/EM3/Ucell/ede3fc34
  </code></pre>