#!/bin/bash

# Define value to reset counter to
number=0

# Get device list
for device in $(eget -t -s ds -a name=EVR:%:%:LINKERRCNT)
do
	##
	## In each device find LINKERRCNT and replace
	## with LINKERRRST.PROC
	caput ${device/LINKERRCNT/LINKERRRST.PROC} $number	
done 
