Hi folks,
I need to write a script which remove files with suffix *.dmp from a specific directory ,older than 30 days and
not including recursive subdirectories.
I.e:
The following command remove recursive all *.dmp files older than 30 days:
Code:
find $ORACLE_BASE -mtime +30 -type f -name "*.dmp" -exec rm {} \;
I need to remove files older than 30 days but only under $ORACLE_BASE without its subdirectories.
How to do it?
Thanks in advance,
Nir