Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Or use a more appropriate tool for the job.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Or use a more appropriate tool for the job.
Authored by: pinguru on Sep 06, '06 07:05:47AM

Any chance you could post the script? I have been tinkering with something like this for a while but to no avail (no shell scripting experience).

Cheers



[ Reply to This | # ]
Or use a more appropriate tool for the job.
Authored by: darsan on Sep 21, '06 10:56:34AM

I use the following command to clean out old home folders on multi-user workstations:

find /Users -maxdepth 1 -mindepth 1 -mtime +30 -type d ! -name Shared ! -name admin | xargs -n 100 rm -Rd

Change the -mtime option to + however many days you need, adjust the user directories you want to exclude at the ! -name options, for xargs it can be changed as needed. This makes a nice periodic launchd/cron script.



[ Reply to This | # ]