User Tools

Site Tools


linux:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:bash [2018/07/23 12:02]
seanburns [Batch New Accounts]
linux:bash [2021/10/05 13:39]
seanburns [Send Form Letter Email with Bash]
Line 93: Line 93:
 while read line while read line
 do do
-        ID=$(echo $line | awk '{'print $1}')+        ID=$(echo $line | awk '{print $1}')
         email=$(echo $line | awk '{print $2}')         email=$(echo $line | awk '{print $2}')
-        CC=$(echo $line | awk '{print $3'}')+        CC=$(echo $line | awk '{print $3}')
         sed "s/NUM/$ID/g" NameOfLetter | mail -c $CC -s "Subject of Letter" $email         sed "s/NUM/$ID/g" NameOfLetter | mail -c $CC -s "Subject of Letter" $email
         sleep 1         sleep 1
linux/bash.txt ยท Last modified: 2021/10/05 13:39 by seanburns