Update clean-versions.sh

This commit is contained in:
杏梢 2022-05-20 20:48:03 +08:00 committed by GitHub
parent 13e9255fa8
commit 7a65e91dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ sed -i "s/! Version:.*/! Version: $time /g" rules-admin.txt url-filter.txt
sed -i "s/! Last Update:.*/! Last Update: $date /g" rules-admin.txt url-filter.txt
easylist=(
#"https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt"
"https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt"
"https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt"
"https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt"
"https://easylist.to/easylist/easyprivacy.txt"
@ -29,7 +29,7 @@ wait
cat rules-admin.txt | grep -E "^[(\@\@)|(\|\|)][^\/\^]+\^" | grep -Fv "$" |sort | uniq > dns.txt
counting=`cat easy* dns.txt | grep -E "^[(\@\@)|(\|\|)][^\/\^]+\^$" |sort | uniq |wc -l`
tittle="! Title: Quickly List \n ! Version: $time \n ! Last Update: $date \n ! Total count: $counting"
tittle="! Title: Quickly List \n! Version: $time \n! Last Update: $date \n! Total count: $counting"
echo -e "$tittle" > dns-list.txt
cat easy* dns.txt | grep -E "^[(\@\@)|(\|\|)][^\/\^]+\^$" |sort | uniq >> dns-list.txt
rm -f easy*