mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-29 09:45:18 +00:00
Update Nlbench_beta.sh
This commit is contained in:
parent
07d9766d23
commit
6851bb0d98
@ -239,30 +239,30 @@ run_script() {
|
|||||||
;;
|
;;
|
||||||
# Geekbench5
|
# Geekbench5
|
||||||
2)
|
2)
|
||||||
echo -e "运行${YELLOW}Geekbench 5...${NC}"
|
echo -e "运行${YELLOW}Geekbench 5...${NC}"
|
||||||
bash <(curl -sL gb5.top) | tee "$temp_file"
|
bash <(curl -sL gb5.top) | tee "$temp_file"
|
||||||
|
|
||||||
# 过滤和清理输出
|
# 过滤和清理输出
|
||||||
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" # 删除ANSI转义字符
|
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" # 删除ANSI转义字符
|
||||||
sed -i 's/\x1B\[.*?[mGKH]//g' "$temp_file" # 删除更多类型的ANSI转义字符
|
sed -i 's/\x1B\[.*?[mGKH]//g' "$temp_file" # 删除更多类型的ANSI转义字符
|
||||||
sed -i 's/\r//' "$temp_file" # 删除回车符
|
sed -i 's/\r//' "$temp_file" # 删除回车符
|
||||||
sed -i '/^$/d' "$temp_file" # 删除空行
|
sed -i '/^$/d' "$temp_file" # 删除空行
|
||||||
|
|
||||||
# 保留最后一次出现的特定标头信息及其之后的内容
|
# 保留最后一次出现的特定标头信息及其之后的内容
|
||||||
awk '
|
awk '
|
||||||
BEGIN { keep=0 }
|
BEGIN { keep=0 }
|
||||||
/# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #/ { keep=NR }
|
/# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #/ { keep=NR }
|
||||||
{ lines[NR] = $0 }
|
{ lines[NR] = $0 }
|
||||||
END {
|
END {
|
||||||
if (keep != 0) {
|
if (keep != 0) {
|
||||||
for (i=keep; i<=NR; i++) {
|
for (i=keep; i<=NR; i++) {
|
||||||
print lines[i]
|
print lines[i]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
' "$temp_file" > "${output_file}_gb5"
|
||||||
}
|
;;
|
||||||
' "$temp_file"
|
|
||||||
cp "$temp_file" "${output_file}_gb5"
|
|
||||||
;;
|
|
||||||
# 融合怪
|
# 融合怪
|
||||||
3)
|
3)
|
||||||
echo -e "运行${YELLOW}融合怪...${NC}"
|
echo -e "运行${YELLOW}融合怪...${NC}"
|
||||||
|
Loading…
Reference in New Issue
Block a user