Skip to content

Instantly share code, notes, and snippets.

@yoander
Last active November 5, 2016 22:37
Show Gist options
  • Save yoander/0babf36d634e3941b18a998d0e02adac to your computer and use it in GitHub Desktop.
Save yoander/0babf36d634e3941b18a998d0e02adac to your computer and use it in GitHub Desktop.
while read line; do echo "Sending email to $line"; done < emails.txt
cat emails.txt |while read line; do echo "Sending email to $line"; done
awk -F'|' '{email=$1" <"$2">"} {print "Sending email to "email;}' emails.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment