Posted by Hans-Henry Jakobsen
find /data/folder -type f -uid 400 -atime +2 -exec /bin/rm {} ; find /data/folder -type d -uid 400 -atime +2 | sort -r | /usr/bin/perl -e 'foreach (<>) {chop; rmdir;
Tags: crontab, find, perl, sort
You must be logged in to post a comment.