#!/bin/bash if test $NEWMETA then for Dir in $(find -L $NEWMETA/ParamInfo -type d) do rm ${Dir}/* done else echo "NEWMETA env var is not defined - source env.sh" fi