Update 测速中文
This commit is contained in:
6
测速中文
6
测速中文
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "🚀 一键网络测速"
|
echo "🚀 一键网络测速"
|
||||||
|
|
||||||
# 直接使用 Python 测速,无需下载安装
|
# 使用原始输出,手动提取信息
|
||||||
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 - | awk '
|
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 - | awk '
|
||||||
/Testing from/ {print "🌐 IP地址: " $5}
|
/Testing from/ {ip=$5; print "🌐 IP地址: " ip}
|
||||||
/Ping:/ {print "🔄 网络延迟: " $2 " " $3}
|
/Ping:/ {print "🔄 网络延迟: " $2 " " $3}
|
||||||
/Download:/ {print "⬇️ 下载速度: " $2 " " $3}
|
/Download:/ {print "⬇️ 下载速度: " $2 " " $3}
|
||||||
/Upload:/ {print "⬆️ 上传速度: " $2 " " $3}
|
/Upload:/ {print "⬆️ 上传速度: " $2 " " $3}
|
||||||
'
|
' | head -4
|
||||||
|
|||||||
Reference in New Issue
Block a user