2024年3月
技术博客主要记录一些平时遇到的问题及解决方法OpenWRT 自动更新 hosts
添加标识符用来自动更新echo -e '## Ghs ##\n## Ghe ##' >> /etc/hosts测试命令是否正常工作wget https://gitee.com/frankwuzp/github-host/raw/main/hosts -O /tmp/ghhost &...
sed 替换两行之间的内容
wshon@thinkbook:~$ cat hosts2 123456 234567 ## Ghs ## asd asd ## Ghe ## wshon@thinkbook:~$ sed -i '/## Ghs ##/,/## Ghe ##/{d}' hosts2 wshon@thinkbo...
最新回复