mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2025-01-01 03:05:18 +00:00
Update Nlbench_beta.sh
This commit is contained in:
parent
bc622645ba
commit
07d9766d23
@ -249,10 +249,19 @@ run_script() {
|
|||||||
sed -i '/^$/d' "$temp_file" # 删除空行
|
sed -i '/^$/d' "$temp_file" # 删除空行
|
||||||
|
|
||||||
# 保留最后一次出现的特定标头信息及其之后的内容
|
# 保留最后一次出现的特定标头信息及其之后的内容
|
||||||
awk 'BEGIN{keep=0}
|
awk '
|
||||||
|
BEGIN { keep=0 }
|
||||||
/# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #/ { keep=NR }
|
/# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #/ { keep=NR }
|
||||||
END{if (keep!=0) print}
|
{ lines[NR] = $0 }
|
||||||
{if (NR >= keep) print}' "$temp_file" > "${output_file}_gb5"
|
END {
|
||||||
|
if (keep != 0) {
|
||||||
|
for (i=keep; i<=NR; i++) {
|
||||||
|
print lines[i]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
' "$temp_file"
|
||||||
|
cp "$temp_file" "${output_file}_gb5"
|
||||||
;;
|
;;
|
||||||
# 融合怪
|
# 融合怪
|
||||||
3)
|
3)
|
||||||
|
Loading…
Reference in New Issue
Block a user