title: bash script send email recipient from reading. txt file
body: <p>I made a bash script that watches a folder and when you copy a file, it is automatically sent to a specific address.</p>
  
  <p>Suppose now that the files are named as follows:</p>
  
  <p>red.zip
  green.zip</p>
  
  <p>how do I send the file to the addresses:</p>
  
  <pre><code>red.zip to red@gmail.com
  green.zip to green@gmail.com
  </code></pre>
  
  <p>or better yet you can do by reading a txt file where email addresses are:
  example;</p>
  
  <p>rosso.zip > to read file red.txt with inside red@gmail.com red1@gmail.com red2@gmail.com</p>
  
  <p>Thank you very much</p>