We are storing export dumps on asm diskgroup.
Can someone help me with a script which can be used to cleanup the old dumps which are say x days old on asm diskgroup.
I am looking for find command with mtime kind of thing which works on asmcmd.
Currently, using this which is generic.
. /home/oracle/grid
sid="+ASM1"
echo "Check Space on "$sid
export ORACLE_SID=$sid
asmcmd << EOF
cd +DG1/export/dumps
rm *.dat
EOF