remove useless entrys

This commit is contained in:
MkQtS 2024-09-19 22:17:58 +08:00 committed by GitHub
parent f08e60a8f4
commit 1966f6dbd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 13 deletions

View File

@ -13486,5 +13486,3 @@
127.0.0.1 zzy.mipujia.com 127.0.0.1 zzy.mipujia.com
127.0.0.1 zzy.quyaoya.com 127.0.0.1 zzy.quyaoya.com
127.0.0.1 zzy1.mipujia.com 127.0.0.1 zzy1.mipujia.com
13.107.21.200 cn.bing.com
255.255.255.255 broadcasthost

View File

@ -1090,7 +1090,6 @@
127.0.0.1 www.2144.cn 127.0.0.1 www.2144.cn
127.0.0.1 iadctest.qwapi.com 127.0.0.1 iadctest.qwapi.com
127.0.0.1 ieonline.microsoft.com 127.0.0.1 ieonline.microsoft.com
13.107.21.200 cn.bing.com
127.0.0.1 dl.2345.com 127.0.0.1 dl.2345.com
127.0.0.1 download.2345.com 127.0.0.1 download.2345.com
127.0.0.1 g.wan.2345.com 127.0.0.1 g.wan.2345.com

View File

@ -77,18 +77,18 @@ echo "$upstreamHead" >./origin-files/upstream-hosts.txt
echo "$upstreamHead" >./origin-files/upstream-strict-hosts.txt echo "$upstreamHead" >./origin-files/upstream-strict-hosts.txt
echo "$upstreamHead" >./origin-files/upstream-dead-hosts.txt echo "$upstreamHead" >./origin-files/upstream-dead-hosts.txt
echo "$upstreamHead" >./origin-files/upstream-easylist.txt echo "$upstreamHead" >./origin-files/upstream-easylist.txt
echo "$upstreamHead" >./origin-files/upstream-wildcard-src-easylist.txt echo "$upstreamHead" >./origin-files/upstream-wildcard-easylist.txt
echo "$upstreamHead" >./origin-files/upstream-whiterule-src-easylist.txt echo "$upstreamHead" >./origin-files/upstream-whiterule-easylist.txt
for listfile in ./raw-sources/hosts*; do for listfile in ./raw-sources/hosts*; do
echo "# $listfile" >>./origin-files/upstream-hosts.txt echo "# $listfile" >>./origin-files/upstream-hosts.txt
tr -d '\r' <"$listfile" | grep -v -E "^((#.*)|(\s*))$" | grep -v -E "^[0-9\.:]+\s+(ip6\-)?(localhost|loopback)$" | tr -d '\r' <"$listfile" | grep -v -E "^((#.*)|(\s*))$" | grep -v -E "^[0-9\.:]+\s+(ip6\-)?(broadcasthost|localhost|loopback)$" |
sed -e 's/0.0.0.0/127.0.0.1/g' -e 's/::/127.0.0.1/g' | sort -u >>./origin-files/upstream-hosts.txt sed -e 's/0.0.0.0/127.0.0.1/g' -e 's/::/127.0.0.1/g' | sort -u >>./origin-files/upstream-hosts.txt
done done
for listfile in ./raw-sources/strict-hosts*; do for listfile in ./raw-sources/strict-hosts*; do
echo "# $listfile" >>./origin-files/upstream-strict-hosts.txt echo "# $listfile" >>./origin-files/upstream-strict-hosts.txt
tr -d '\r' <"$listfile" | grep -v -E "^((#.*)|(\s*))$" | grep -v -E "^[0-9\.:]+\s+(ip6\-)?(localhost|loopback)$" | tr -d '\r' <"$listfile" | grep -v -E "^((#.*)|(\s*))$" | grep -v -E "^[0-9\.:]+\s+(ip6\-)?(broadcasthost|localhost|loopback)$" |
sed -e 's/0.0.0.0/127.0.0.1/g' -e 's/::/127.0.0.1/g' | sort -u >>./origin-files/upstream-strict-hosts.txt sed -e 's/0.0.0.0/127.0.0.1/g' -e 's/::/127.0.0.1/g' | sort -u >>./origin-files/upstream-strict-hosts.txt
done done
@ -101,11 +101,11 @@ for listfile in ./raw-sources/easylist*; do
echo "# $listfile" >>./origin-files/upstream-easylist.txt echo "# $listfile" >>./origin-files/upstream-easylist.txt
tr -d '\r' <"$listfile" | grep -E "^\|\|[^\*\^]+?\^" | sort -u >>./origin-files/upstream-easylist.txt tr -d '\r' <"$listfile" | grep -E "^\|\|[^\*\^]+?\^" | sort -u >>./origin-files/upstream-easylist.txt
echo "# $listfile" >>./origin-files/upstream-wildcard-src-easylist.txt echo "# $listfile" >>./origin-files/upstream-wildcard-easylist.txt
tr -d '\r' <"$listfile" | grep -E "^\|\|?([^\^=\/:]+)?\*([^\^=\/:]+)?\^" | sort -u >>./origin-files/upstream-wildcard-src-easylist.txt tr -d '\r' <"$listfile" | grep -E "^\|\|?([^\^=\/:]+)?\*([^\^=\/:]+)?\^" | sort -u >>./origin-files/upstream-wildcard-easylist.txt
echo "# $listfile" >>./origin-files/upstream-whiterule-src-easylist.txt echo "# $listfile" >>./origin-files/upstream-whiterule-easylist.txt
tr -d '\r' <"$listfile" | grep -E "^@@\|\|?[^\^=\/:]+?\^([^\/=\*]+)?$" | sort -u >>./origin-files/upstream-whiterule-src-easylist.txt tr -d '\r' <"$listfile" | grep -E "^@@\|\|?[^\^=\/:]+?\^([^\/=\*]+)?$" | sort -u >>./origin-files/upstream-whiterule-easylist.txt
done done
rm -r ./raw-sources rm -r ./raw-sources
@ -114,7 +114,7 @@ sed '/^#/d' ./origin-files/upstream-hosts.txt | sort -u >./origin-files/base-src
sed '/^#/d' ./origin-files/upstream-strict-hosts.txt | sort -u >./origin-files/base-src-strict-hosts.txt sed '/^#/d' ./origin-files/upstream-strict-hosts.txt | sort -u >./origin-files/base-src-strict-hosts.txt
sed '/^#/d' ./origin-files/upstream-dead-hosts.txt | sort -u >./origin-files/base-dead-hosts.txt sed '/^#/d' ./origin-files/upstream-dead-hosts.txt | sort -u >./origin-files/base-dead-hosts.txt
sed '/^#/d' ./origin-files/upstream-easylist.txt | sort -u >./origin-files/base-src-easylist.txt sed '/^#/d' ./origin-files/upstream-easylist.txt | sort -u >./origin-files/base-src-easylist.txt
sed '/^#/d' ./origin-files/upstream-wildcard-src-easylist.txt | sort -u >./origin-files/wildcard-src-easylist.txt sed '/^#/d' ./origin-files/upstream-wildcard-easylist.txt | sort -u >./origin-files/wildcard-src-easylist.txt
sed '/^#/d' ./origin-files/upstream-whiterule-src-easylist.txt | sort -u >./origin-files/whiterule-src-easylist.txt sed '/^#/d' ./origin-files/upstream-whiterule-easylist.txt | sort -u >./origin-files/whiterule-src-easylist.txt
cd ../ cd ../