#!/bin/sh # sed/changeword # changes one model to another model for SCANRunSiteConfig.xml files # files=$(find /awips2/edex/data/utility/common_static | grep SCANRunSiteConfig.xml) echo "Updating all SCANRunSiteConfig.xml files to use HRRR instead of RUC130." old=RUC130 new=HRRR for f in $files do echo "Processing file: " $f if test -f "$f" then sed "s/$old/$new/g" $f > $f.new mv $f $f.orig mv $f.new $f rm $f.orig echo $f done fi done