[shell] find command

[shell] find command
0 votes, 0.00 avg. rating (0% score)

Check $path folder for the files that are older that 7 days and delete them.

 find $path 2>>$DLOG -mtime +7 ! -exec rm -rf {} \;

check man page

Leave a Reply

Your email address will not be published. Required fields are marked *