version 1.5, 2007/08/12 21:48:34
|
version 1.7, 2008/01/13 22:08:44
|
Line 1
|
Line 1
|
#!/bin/sh |
#!/bin/sh |
ADDRESS="chronicles@chgk.info" |
#ADDRESS="chronicles@chgk.info" |
#ADDRESS=boris |
ADDRESS=boris |
PREFIX=http://letopis.chgk.info |
PREFIX=http://letopis.chgk.info |
if ( grep html results.txt > letter1.txt ) ; then |
if ( grep html results.txt > letter1.txt ) ; then |
echo "Sending notification to $ADDRESS" |
echo "Sending notification to $ADDRESS" |
Line 21 if ( grep html results.txt > letter1.txt
|
Line 21 if ( grep html results.txt > letter1.txt
|
s/<[^>]*>//g |
s/<[^>]*>//g |
s/<[^>]*$//g |
s/<[^>]*$//g |
s/^[^<]*>//g |
s/^[^<]*>//g |
s/<.*@.*>/<address>/g |
s/<[a-zA-Z\._0-9-]*@[a-zA-Z\._0-9-]*>/<address>/g |
/^[ ]*$/d |
/^[ ]*$/d |
s/^\(.*\)$/ \1/' |head -5 >>letter.txt |
s/^\(.*\)$/ \1/' |head -5 >>letter.txt |
echo >> letter.txt |
echo >> letter.txt |