From 4e6dc0ced3c9ac0398691b040340fc31d10a3918 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 4 Jul 2024 22:21:08 +0800 Subject: [PATCH] Update Nlbench_beta.sh --- Nlbench_beta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nlbench_beta.sh b/Nlbench_beta.sh index c34ad47..3bdf04f 100644 --- a/Nlbench_beta.sh +++ b/Nlbench_beta.sh @@ -166,7 +166,7 @@ run_script() { echo -e "运行${YELLOW}IP质量测试...${NC}" bash <(curl -Ls IP.Check.Place) | tee "$temp_file" sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" - sed -i -e '/########################################################################/,$p' -e '1,/########################################################################/d' "$temp_file" + sed -i -n '/########################################################################/,${s/^.*\(########################################################################\)/\1/;p}' "$temp_file" sed -i '/^$/d' "$temp_file" # 删除空行 cp "$temp_file" "${output_file}_ip_quality" ;;