src/utils/qa/checkBOT.csh 1.14
1.14 2009/05/20 20:48:01 kuhn
fixed parsing of IPs. thanks pauline
Index: src/utils/qa/checkBOT.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/checkBOT.csh,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -B -U 4 -r1.13 -r1.14
--- src/utils/qa/checkBOT.csh 14 May 2009 23:17:15 -0000 1.13
+++ src/utils/qa/checkBOT.csh 20 May 2009 20:48:01 -0000 1.14
@@ -55,9 +55,9 @@
echo
# get locations (strip off sessionID)
set chopIPs=`echo $allIPs | sed "s/ /\n/"g \
- | awk -F"." '{print $NF-3"."$NF-2"."$NF-1"."$NF}'`
+ | awk -F"." '{print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF}'`
foreach ip (`echo $chopIPs`)
set orgName=`ipw $ip | grep OrgName | sed -e "s/OrgName: //"` > /dev/null
set current=`grep -w $ip ipFile | awk '{print $5}'`
echo "$ip\t\t$current\t $orgName"