Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-07-04 17:25:23 +08:00 committed by GitHub
parent 201945a3b9
commit ad2b0ced31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,6 +205,7 @@ run_script() {
echo -e "运行${YELLOW}iperf3测试...${NC}" echo -e "运行${YELLOW}iperf3测试...${NC}"
run_iperf3_test | tee "$temp_file" run_iperf3_test | tee "$temp_file"
sed -e 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" sed -e 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
sed -i -r '1,/\[ ID\] /d' "$temp_file"
cp "$temp_file" "${output_file}_iperf3" cp "$temp_file" "${output_file}_iperf3"
;; ;;