Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. list = "john, john@gmail.com" "doe, doe@outlook.com" "jenny, jenny@another.domain"
  2.  
  3. for i,j in $list; do
  4. echo "Dear $i, email text" | mail -s "Hello $i" $j
  5. done
  6.  
  7. echo "Dear john, email text" | mail -s "Hello john" john@gmail.com
  8.  
  9. name, email
  10. john, john@gmail.com
  11. jenny, jenny@another.domain
  12. doe, doe@outlook.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement