daily icon indicating copy to clipboard operation
daily copied to clipboard

provide a separate chnlist head file?

Open cattyhouse opened this issue 3 years ago • 2 comments

Looking at the script, there is a head generated as tmp file

however i think that is the most useful domains.

can you provide it as chnlisttop.txt ?

that way, you don't need to head -n 2000 to get the list for shadowrocket, just use chnlisttop.txt for it

thanks

btw, right now i use this awk to get it from your list and generate a dnsmasq conf file.

awk -v pre="server=/" -v suf="/$dns_china" '/^000/{exit} 1{print pre $0 suf}' chnlist.txt 

that will get all the domains from line 1 until before the first "^000" matches.

cattyhouse avatar Jan 13 '22 19:01 cattyhouse

root@PI /tmp/chinalist.0xgUNX # cat chinalist_head.tmp | wc -l
2410

Looks good, but I don't have time to maintain this project for now. I will rewrite this project in the future.

pexcn avatar Jan 14 '22 02:01 pexcn

i get 2578 with this command:

awk -v pre="server=/" -v suf="/$dns_china" '/^000/{exit} 1{print pre $0 suf}' chnlist.txt 

cattyhouse avatar Jan 14 '22 09:01 cattyhouse