#!/bin/csh

set dir_path = $1

if ( $dir_path == "" ) then
        echo "Enter the directory path to replace spring:message tags therein!!!"
        exit 1
endif

grep -rl 'spring:message' --exclude-dir=.svn $dir_path | xargs sed -i 's/spring:message/openmrs:message/g'

