Skip to content

Instantly share code, notes, and snippets.

@dankempster
Created November 19, 2012 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dankempster/4110365 to your computer and use it in GitHub Desktop.
Save dankempster/4110365 to your computer and use it in GitHub Desktop.
Clean Mac Meta (Crap) Files
#!/bin/bash
find . -type f -name ".DS_Store" -delete
find . -type f -name "._*" -delete
find . -type f -name ".FBC*" -delete
find . -type f -name ".fseventsd" -delete
find . -type f -name ".Trashes" -delete
# There is other 'detritus' that could be removed such as the following folders, but they don't generally cause trouble so I leave them alone.
#find . -type f -name ".Spotlight-V100" -delete
#find . -type f -name ".TemporaryItems" -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment