# Look for all the eamxx_***_output.yaml files in the case folder and
# change the avg type to average.

CASEROOT=$(./xmlquery --value CASEROOT)
YAML_EDIT_SCRIPT=$CIMEROOT/../components/eamxx/scripts/edit-output-stream

YAML_FILES=$(ls -1 | grep 'eamxx_.*_output.yaml')
for fname in ${YAML_FILES}; do
  $YAML_EDIT_SCRIPT -f $fname --avg-type average
done
