Skip to content

Instantly share code, notes, and snippets.

@47ronin
Created November 21, 2016 18:23
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 47ronin/26c34627cb56ea6bdc1aeebc18659c23 to your computer and use it in GitHub Desktop.
Save 47ronin/26c34627cb56ea6bdc1aeebc18659c23 to your computer and use it in GitHub Desktop.
Simple removal of macOS dotfiles from a path, usually external volumes
find /path/to -name "._*" -o -name ".DS_Store" | sed 's/.*/"&"/' | xargs rm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment