This commit is contained in:
lovely.wcm 2009-08-13 03:56:56 +00:00
parent a67531c711
commit 45c006681b

View File

@ -9,7 +9,7 @@ while read line
do do
host=$( echo "$line" | host=$( echo "$line" |
grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,3}" | grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,4}" |
grep -vE "dot$|htm$|php$" ); grep -vE "dot$|htm$|php$" );
[ "$host" ] && [ "$(nslookup $host | grep $1)" ] && echo $host; [ "$host" ] && [ "$(nslookup $host | grep $1)" ] && echo $host;