--- reports/sendletter.sh 2007/08/12 21:48:34 1.5 +++ reports/sendletter.sh 2009/10/27 23:24:09 1.9 @@ -1,6 +1,6 @@ #!/bin/sh -ADDRESS="chronicles@chgk.info" -#ADDRESS=boris +#ADDRESS="chronicles@chgk.info" +ADDRESS=boris PREFIX=http://letopis.chgk.info if ( grep html results.txt > letter1.txt ) ; then echo "Sending notification to $ADDRESS" @@ -21,7 +21,7 @@ if ( grep html results.txt > letter1.txt s/<[^>]*>//g s/<[^>]*$//g s/^[^<]*>//g -s/<.*@.*>/
/g +s/<[a-zA-Z\._0-9-]*@[a-zA-Z\._0-9-]*>//g /^[ ]*$/d s/^\(.*\)$/ \1/' |head -5 >>letter.txt echo >> letter.txt