curl https://www.cloudflare.com/ips-v{4,6} | sed 's/^/set_real_ip_from /;s/$/;/' > /home/user/output.txt
它工作得很好,问题是如何添加文件1和文件2之间的换行符(保留对格式的更改)?
PHP CURL启用Linux
Libcurl – 使用本机窗口encryption的客户端SSLauthentication – 有可能吗?
在一天内的特定时段之间调用curl
喜欢这个 :
{ curl -s https://www.cloudflare.com/ips-v4 printf 'nn' curl -s https://www.cloudflare.com/ips-v6 } | sed -r 's/^(.+)$/set_real_ip_from 1;/g' > /home/user/output.txt
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。