Created
November 29, 2012 11:20
-
-
Save oumu/4168338 to your computer and use it in GitHub Desktop.
tracert+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ydip () { w3m -dump "http://www.youdao.com/smartresult-xml/search.s?type=ip&q=$1"; } | |
alias iconvu='iconv -f GBK -t UTF-8' | |
tracert () { TRACERT "$@" | iconvu | tee >(grep -oP '\d*(?= ms)' | spark) >(grep -oP '\d+\.\d+\.\d+\.\d+' | while read -r line; do ydip "$line"; done); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sample output: | |
通过最多 30 个跃点跟踪 | |
到 g.cn [74.125.128.160] 的路由: | |
1 * * * 请求超时。 | |
2 11 ms 11 ms 12 ms 222.176.28.217 | |
3 39 ms 39 ms 39 ms 222.176.2.238 | |
4 37 ms 38 ms 47 ms 202.97.33.166 | |
5 38 ms 37 ms 38 ms 202.97.60.197 | |
6 41 ms 41 ms 41 ms 202.97.61.26 | |
7 42 ms 45 ms 42 ms 202.97.122.70 | |
8 42 ms 42 ms * 209.85.248.60 | |
9 67 ms 45 ms 46 ms 216.239.43.19 | |
10 * * * 请求超时。 | |
11 43 ms 44 ms 43 ms hg-in-f160.1e100.net [74.125.128.160] | |
跟踪完成。 | |
▁▁▁▄▄▄▄▄▅▄▄▄▄▄▄▄▅▄▄▄█▅▅▅▅▅ | |
74.125.128.160 美国加利福尼亚州山景市谷歌公司 | |
222.176.28.217 重庆市电信 | |
222.176.2.238 重庆市电信 | |
202.97.33.166 上海市电信骨干网国际出口 | |
202.97.60.197 广东省广州市互联网交换中心 | |
202.97.61.26 广东省电信骨干网 | |
202.97.122.70 香港中国电信骨干网 | |
209.85.248.60 美国加利福尼亚州山景市谷歌公司 | |
216.239.43.19 美国加利福尼亚州山景市谷歌公司 | |
74.125.128.160 美国加利福尼亚州山景市谷歌公司 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment