From 3bce424b49f16ab92a4cc864144df0f11d9b63e6 Mon Sep 17 00:00:00 2001 From: xzx3344521 Date: Tue, 28 Oct 2025 14:12:51 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=B5=8B=E9=80=9F=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 测速中文 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/测速中文 b/测速中文 index a452338..f9d3029 100644 --- a/测速中文 +++ b/测速中文 @@ -1,10 +1,8 @@ #!/bin/bash echo "🚀 一键网络测速" - -# 使用原始输出,手动提取信息 -curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 - | awk ' -/Testing from/ {ip=$5; print "🌐 IP地址: " ip} -/Ping:/ {print "🔄 网络延迟: " $2 " " $3} -/Download:/ {print "⬇️ 下载速度: " $2 " " $3} -/Upload:/ {print "⬆️ 上传速度: " $2 " " $3} -' | head -4 +curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 - | grep -E "(Testing from|Ping:|Download:|Upload:)" | head -4 | sed ' +s/Testing from/🌐 IP地址:/ +s/Ping:/🔄 网络延迟:/ +s/Download:/⬇️ 下载速度:/ +s/Upload:/⬆️ 上传速度:/ +'