· 10 years ago · Mar 22, 2016, 09:15 PM
1check=$(lynx -source $1 | grep -i $2)
2if [[ $check == *"$2"* ]]
3
4then
5 /usr/local/bin/sendemail -o tls=yes -f ***@gmail.com -t
6 trigger@recipe.ifttt.com -s smtp.gmail.com:587 -xu ***@gmail.com -xp *** -u
7 $1 -m "contains the word " $2 ".";
8
9else
10 /usr/local/bin/sendemail -o tls=yes -f ***@gmail.com -t
11 trigger@recipe.ifttt.com -s smtp.gmail.com:587 -xu ***@gmail.com -xp *** -u
12 $1 -m "does not contain the word " $2 ".";
13
14fi