mirror of https://github.com/hacamer/AdRule.git
Update clean-versions.sh
This commit is contained in:
parent
13e9255fa8
commit
7a65e91dee
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue