|
|

楼主 |
发表于 2009-5-1 15:11:07
|
显示全部楼层
- #!/bin/bash
- echo -n 'ip-address.com:: ' ; curl -s http://www.ip-adress.com/|grep "My IP address" | cut -d ' ' -f 4 | cut -d '<' -f 1
- echo -n '5-ip.com:: ' ; curl -s http://5-ip.com/|sed -n '/您的IP地址/,+2p' | grep br | cut -d ' ' -f 1
- echo -n 'whatsmyip.net:: ' ; curl -s http://whatsmyip.net/|sed -n '/Your IP is/,+2p'|grep 'textarea' | cut -d '>' -f 2 | cut -d '<' -f 1
- echo -n 'whatsmyip.org.uk:: ' ; curl -s http://www.whatsmyip.org.uk/|grep 'Your ip address is' | cut -d '#' -f 2 | cut -d ' ' -f 5 | cut -d '<' -f 1
- echo -n 'sng.net:: ' ; curl -s http://www.sng.net/ | sed -n '/Address:/,+2p'|sed -n '2p' | cut -d '<' -f 1 | sed 's/ //g'
- echo -n 'wieistmeineip.com:: ' ; curl -s http://www.wieistmeineip.com/ | grep 'Your IP' | cut -d ':' -f 2 | cut -d '>' -f 4 | cut -d '<' -f 1
- echo -n 'whatismyipaddress.com::' ; curl -A Opera -s http://whatismyipaddress.com/ | grep 'Your IP address is' | cut -d ' ' -f 6 | cut -d '<' -f 1
复制代码
写了这个脚本, 你可以从不同网站查看你的ip,
我这里运行的结果是出现3个不同的IP, 并且每次运行后的结果都会发生变化 |
|