ONOS-737: regexp for grabbing OC* variables changed
Change-Id: Id5651ffb41230a39c6ed68e1605feaf3c0aa337b
diff --git a/tools/test/bin/onos-show-cell b/tools/test/bin/onos-show-cell
index f5c7572..bc54240 100755
--- a/tools/test/bin/onos-show-cell
+++ b/tools/test/bin/onos-show-cell
@@ -43,7 +43,7 @@
echo "ONOS_CELL=${ONOS_CELL}"
echo "ONOS_NIC=${ONOS_NIC}"
# get number of OC variables
-max=$( env | egrep 'OC[0-9]+' | wc -l )
+max=$( env | egrep '^OC[0-9]+' | wc -l )
for n in $( seq 0 ${max} ); do
ocn="OC${n}"
if [ -n "${!ocn}" ]; then