【发布时间】:2014-04-04 04:11:19
【问题描述】:
这是一个示例 ip 代理检查器 shell 脚本:
#!/bin/sh
while read IP
do
CURL=$(curl -x http://$IP -L http://icanhazip.com)
echo "$CURL"
done < ip.txt
但不是像这样的简单结果:
0.0.0.0
1.1.1.1
我明白了:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0.0.0.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
1.1.1.1
我怎样才能让多余的东西安静下来?
【问题讨论】:
-
哦。
-s是我所需要的。