From e625fc7334b06af767617491546dbe6ace204829 Mon Sep 17 00:00:00 2001 From: AhFei Date: Fri, 13 Jan 2023 03:02:27 +0800 Subject: [PATCH] =?UTF-8?q?ss=20=E5=8F=96=E4=BB=A3=20ifconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- initial.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initial.sh b/initial.sh index 7d89a28..bcc5150 100644 --- a/initial.sh +++ b/initial.sh @@ -56,6 +56,6 @@ echo "now geekbench5!" ./geekbench5 > result_geekbench5.txt docker run -d -e MODE=standalone -p 88:80 -it adolfintel/speedtest -echo "`ifconfig eth0 | head -n2 | grep inet | awk '{print$2}'`:88" >> result_geekbench5.txt +echo "`ip a | head -n13 | grep /24 | awk '{print$2}' | sed 's/\/24//g'`:88" >> result_geekbench5.txt echo "step 4: test has finished" \ No newline at end of file