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
linux:bash [2021/10/05 13:39]
seanburns [Send Form Letter Email with Bash]
linux:bash [2021/10/05 13:39] (current)
seanburns [Send Form Letter Email with Bash]
Line 95: Line 95:
         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