From e13c4ea5a18c85ab8c6a15da33bd97a6ac6f19d8 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all --- xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all b/xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all index c9e6992ac..ce352e4b1 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/ping-all/ping_all @@ -1,7 +1,7 @@ #!/bin/ksh function do_pings { - #set -x + #set -x integer dest_array_index=0 integer total_ping_count=0 @@ -62,7 +62,7 @@ else file=$1 fi -#ifconfig -a | grep 'inet ' | awk ' { print $2 } ' | grep -v 127.0.0.1 | +#ifconfig -a | grep 'inet ' | awk ' { print $2 } ' | grep -v 127.0.0.1 | ip -4 -oneline addr show 2>/dev/null |grep inet | sed -ne "s/.*inet //p"|awk -F ' ' '{print $1}'|awk -F '/' '{print $1}'| while read my_address ; do ##print "checking $my_address" @@ -73,7 +73,7 @@ while read my_address ; do integer starting_line_minus_1=$starting_line-1 tail +${starting_line} $file > /tmp/current_ping_address_file head -${starting_line_minus_1} $file >> /tmp/current_ping_address_file - file=/tmp/current_ping_address_file + file=/tmp/current_ping_address_file do_pings found_flag=1 break