--- reports/sendletter.sh 2007/08/12 21:48:34 1.5 +++ reports/sendletter.sh 2010/03/04 16:31:46 1.11 @@ -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 @@ -31,6 +31,6 @@ s/^\(.*\)$/ \1/' |head -5 >>letter.tx echo "--" >> letter.txt echo "Ваш робот" >> letter.txt echo >> letter.txt - fortune lec >> letter.txt +# fortune lec >> letter.txt mail -s "Novosti v letopisi" $ADDRESS