Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Script to delete sub directories with parameters

$
0
0
Hello,

How would I write a BASH script to remove all sub directories in a root level directory that are older than
10 days, but exclude directories owned by certain users. I would need to run as a cron job once a week.

Thank you
-John

Viewing all articles
Browse latest Browse all 16232

Trending Articles