From f0ea3efe5330cac254c93c23683c4b1067f8578c Mon Sep 17 00:00:00 2001 From: "lovely.wcm" Date: Fri, 14 Aug 2009 01:34:15 +0000 Subject: [PATCH] c2NyaXB0IHVwZGF0ZQo= --- lookup.sh | 6 +++--- sendGFWList.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lookup.sh b/lookup.sh index be9b088..763e057 100755 --- a/lookup.sh +++ b/lookup.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ $# != 1 ]; then - echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs\n"; + echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs.l.google\n"; exit 1; fi @@ -10,9 +10,9 @@ do host=$( echo "$line" | grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,4}" | - grep -vE "dot$|htm$|php$" ); + grep -vE "dotn$|html$|php$" ); - [ "$host" ] && [ "$(nslookup $host | grep $1)" ] && echo $host; + [ "$host" ] && [ "$(nslookup $host | grep -i $1)" ] && echo $host; done < "list.txt" diff --git a/sendGFWList.sh b/sendGFWList.sh index d3c6105..de3d27e 100755 --- a/sendGFWList.sh +++ b/sendGFWList.sh @@ -75,7 +75,7 @@ if [ "$convertedLog" != "" ]; then # log format: author1:"message1"; author2:"message2"... base64 -d gfwlist.txt > list.txt && - git commit -a -m "$convertedLog" && + git commit -a -m "$convertedLog"; # apply local modification if [ -s temp.patch ]; then git apply temp.patch; fi &&