you can use the given Command to remove old Specific Extension base Files Older than specific time
like find (will find the files with given Condition like " DEVDB_12 "
-mtime (machine time +20) which means 20 days Old files comparing to machine Time
& exec rm -f {} \ will execute the command after meeting the condition.
find . DEVDB_12*.trc -mtime +20 -exec rm -f {} \;
rm -rf `ls -ltr | grep -i "2013 " | awk '{ print $9}'`
No comments:
Post a Comment