Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分享一个转化成 SmartDNS 支持格式的命令 #202

Open
hululu1068 opened this issue Jul 25, 2023 · 2 comments
Open

分享一个转化成 SmartDNS 支持格式的命令 #202

hululu1068 opened this issue Jul 25, 2023 · 2 comments

Comments

@hululu1068
Copy link

一把梭

cat hosts | grep -v "^\s*#\|^\s*$" | awk '{print "address /"$2"/"$1}' > github-hosts.conf
image
@larsonzh
Copy link

larsonzh commented Sep 5, 2023

很方便,address后面需要加个=号吗?

cat hosts | grep -v "^\s*#\|^\s*$" | awk '{print "address=/"$2"/"$1}' > github-hosts.conf

@des0315
Copy link

des0315 commented Sep 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants