Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save boywijnmaalen/9066906bfa7a100b42e7 to your computer and use it in GitHub Desktop.
Save boywijnmaalen/9066906bfa7a100b42e7 to your computer and use it in GitHub Desktop.
Delete a file recursively from the commandline
# find Mac files
$ sudo find folder-location/ -iname "._*" -exec rm {} \;
# find Mac files #2
$ sudo find folder-location/ -iname ".DS_Store" -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment