I have a Ad-blocking hosts file with 0.0.0.0
IPs pointing to URLs. How to replace 0.0.0.0
with 127.0.0.1
command line without any visual text editor ? Manually doing this with nano
, vi
etc. is impossible , the list have above 15k lines.
from this
0.0.0.0 c.one97adworks.com
0.0.0.0 0koryu0.easter.ne.jp
0.0.0.0 static.super-links.net
to this
127.0.0.1 c.one97adworks.com
127.0.0.1 0koryu0.easter.ne.jp
127.0.0.1 static.super-links.net
at once.
My shell bash 4.3.33.
UPDATE two down votes ? please leave comments.