#!/bin/bash
url="http://v2ex.com"
want="好玩"
wget "$url" -O contents
if
result=$(cat contents | ack -i "$want")
then
echo "$result" | mail -s "Notification" [email protected]
else
echo "nothing"
fi
1
Strikeactor 2016-03-12 11:56:17 +08:00
|