Does anyone have a solution to remove those pesky ._ and .DS_Store files that one gets after moving files from a Mac to A Linux Server?
specify a start directory and let it go? like /var/www/html/ down...
Does anyone have a solution to remove those pesky ._ and .DS_Store files that one gets after moving files from a Mac to A Linux Server?
specify a start directory and let it go? like /var/www/html/ down...
Newer findutils supports -delete, so:
will work for you if you have an up-to-date POSIX system, I believe. At least it works for me on OS X 10.8,
Credit to @ephemient in a comment on @X-Istence's post (thought it was helpful enough to warrant its own answer).
Simple command:
Good luck!
Example to delete "Thumbs.db" recursively;
Validate by:
This should now, not display any of the entries with "Thumbs.db", inside the current path.
A few things to note:
'-delete' is not recursive. So if .TemporaryItems (folder) has files in it, the command fails.
There are a lot of these pesky files created by macs: .DS_Store ._.DS_Store .TemporaryItems .apdisk
This one command addresses all of them. Saves from running find over and over again for multiple matches.