Cron Job to delete .AppleDouble directories

Status
Not open for further replies.

ooimo

Dabbler
Joined
Dec 9, 2013
Messages
11
Like the title says. How would I go about making a cron job to delete directories starting with "."?
If this isn't possible can someone point me in the right direction? I'm getting frustrated with the directories everywhere. Thanks!
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Something along those lines should work:
Code:
find /mnt/folder/ -name \.AppleDouble -exec rm -rf {} \;

(stolen from this gist)
 
Status
Not open for further replies.
Top